Disable access control with customAuth flag

This commit is contained in:
Girish Ramakrishnan
2016-09-07 16:24:19 -07:00
parent 3c5fadb1f5
commit a4c2e5f3d2
2 changed files with 18 additions and 2 deletions

View File

@@ -73,7 +73,15 @@
Access is granted to <b>{{ renderAccessRestrictionUser(appConfigure.app.accessRestriction.users[0]) }}</b>.
</p>
</div>
<div class="form-group" ng-hide="appConfigure.app.manifest.singleUser">
<div class="form-group" ng-show="appInstall.app.manifest.customAuth">
<label class="control-label">Access control</label>
<p>
This app has it's own access control and does not integrate with Cloudron Auth.
</p>
</div>
<div class="form-group" ng-hide="appConfigure.app.manifest.singleUser || appConfigure.app.manifest.customAuth">
<label class="control-label">Access control</label>
<div class="radio">
<label>

View File

@@ -39,7 +39,15 @@
<label class="control-label">User</label>
<select class="form-control" ng-model="appInstall.accessRestrictionSingleUser" ng-options="user as (user.username || user.email) for user in users track by user.id" ng-required="appInstall.app.manifest.singleUser"></select>
</div>
<div class="form-group" ng-hide="appInstall.app.manifest.singleUser">
<div class="form-group" ng-show="appInstall.app.manifest.customAuth">
<label class="control-label">Access control</label>
<p>
This app has it's own access control and does not integrate with Cloudron Auth.
</p>
</div>
<div class="form-group" ng-hide="appInstall.app.manifest.singleUser || appInstall.app.manifest.customAuth">
<label class="control-label">Access control</label>
<div class="radio">
<label>