diff --git a/src/views/apps.html b/src/views/apps.html index b0c872051..69f8fc175 100644 --- a/src/views/apps.html +++ b/src/views/apps.html @@ -47,39 +47,31 @@ -
- -

+

+ + +

This app has it's own user management.

-
- -
- -

- This app is configured to use it's own user management. +

+ This app is pre-configured for use with Cloudron Email.

-
-
- -

- All users with a mailbox on this Cloudron have access. -

-
- -
-
@@ -100,9 +92,6 @@
-

- This app is pre-configured for use with Cloudron Email. -

diff --git a/src/views/apps.js b/src/views/apps.js index f7623b49d..6930f460a 100644 --- a/src/views/apps.js +++ b/src/views/apps.js @@ -34,7 +34,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location accessRestrictionOption: 'any', accessRestriction: { users: [], groups: [] }, xFrameOptions: '', - customAuth: false, + ssoAuth: false, isAccessRestrictionValid: function () { var tmp = $scope.appConfigure.accessRestriction; @@ -52,11 +52,12 @@ angular.module('Application').controller('AppsController', ['$scope', '$location $scope. Option = app.accessRestriction ? 'groups' : 'any'; $scope.appConfigure.memoryLimit = app.memoryLimit || app.manifest.memoryLimit || (256 * 1024 * 1024); $scope.appConfigure.xFrameOptions = app.xFrameOptions.indexOf('ALLOW-FROM') === 0 ? app.xFrameOptions.split(' ')[1] : ''; - $scope.appConfigure.customAuth = !(app.manifest.addons['ldap'] || app.manifest.addons['oauth']); $scope.appConfigure.robotsTxt = app.robotsTxt; $scope.appConfigure.enableBackup = app.enableBackup; $scope.appConfigure.mailboxName = app.mailboxName || ''; + $scope.appConfigure.ssoAuth = (app.manifest.addons['ldap'] || app.manifest.addons['oauth']) && app.sso; + // create ticks starting from manifest memory limit. the memory limit here is currently split into ram+swap (and thus *2 below) // TODO: the *2 will overallocate since 4GB is max swap that cloudron itself allocates $scope.appConfigure.memoryTicks = [ ]; @@ -292,7 +293,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location $scope.appConfigure.accessRestrictionOption = 'any'; $scope.appConfigure.accessRestriction = { users: [], groups: [] }; $scope.appConfigure.xFrameOptions = ''; - $scope.appConfigure.customAuth = false; + $scope.appConfigure.ssoAuth = false; $scope.appConfigure.robotsTxt = ''; $scope.appConfigure.enableBackup = true;