mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Prevent space user invitation for non-Documize auth providers
If running LDAP or Keycloak authentication, you cannot bypass user sync process to invite new users. Closes #284
This commit is contained in:
parent
595301db64
commit
264c25cfe0
2 changed files with 12 additions and 9 deletions
|
@ -16,10 +16,11 @@ import { debounce } from '@ember/runloop';
|
||||||
import { computed } from '@ember/object';
|
import { computed } from '@ember/object';
|
||||||
import Notifier from '../../mixins/notifier';
|
import Notifier from '../../mixins/notifier';
|
||||||
import Modals from '../../mixins/modal';
|
import Modals from '../../mixins/modal';
|
||||||
|
import AuthProvider from '../../mixins/auth';
|
||||||
import stringUtil from '../../utils/string';
|
import stringUtil from '../../utils/string';
|
||||||
import Component from '@ember/component';
|
import Component from '@ember/component';
|
||||||
|
|
||||||
export default Component.extend(Notifier, Modals, {
|
export default Component.extend(Notifier, Modals, AuthProvider, {
|
||||||
groupSvc: service('group'),
|
groupSvc: service('group'),
|
||||||
spaceSvc: service('folder'),
|
spaceSvc: service('folder'),
|
||||||
userSvc: service('user'),
|
userSvc: service('user'),
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
<div class="title" {{action "toggleSpacePerms"}}>
|
<div class="title" {{action "toggleSpacePerms"}}>
|
||||||
Space Permissions Explained
|
Space Permissions Explained
|
||||||
{{#if showSpacePermExplain}}
|
{{#if showSpacePermExplain}}
|
||||||
<i class="dicon {{constants.Icon.ArrowSmallUp}}" />
|
<i class="dicon {{constants.Icon.ArrowSmallUp}}"></i>
|
||||||
{{else}}
|
{{else}}
|
||||||
<i class="dicon {{constants.Icon.ArrowSmallDown}}" />
|
<i class="dicon {{constants.Icon.ArrowSmallDown}}"></i>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="perms space-perms">
|
<div class="perms space-perms">
|
||||||
|
@ -27,9 +27,9 @@
|
||||||
<div class="title" {{action "toggleDocumentPerms"}}>
|
<div class="title" {{action "toggleDocumentPerms"}}>
|
||||||
Document Permissions Explained
|
Document Permissions Explained
|
||||||
{{#if showDocumentPermExplain}}
|
{{#if showDocumentPermExplain}}
|
||||||
<i class="dicon {{constants.Icon.ArrowSmallUp}}" />
|
<i class="dicon {{constants.Icon.ArrowSmallUp}}"></i>
|
||||||
{{else}}
|
{{else}}
|
||||||
<i class="dicon {{constants.Icon.ArrowSmallDown}}" />
|
<i class="dicon {{constants.Icon.ArrowSmallDown}}"></i>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="perms document-perms">
|
<div class="perms document-perms">
|
||||||
|
@ -61,10 +61,12 @@
|
||||||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Person
|
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Person
|
||||||
label="Add Existing User"
|
label="Add Existing User"
|
||||||
onClick=(action "onShowAddModal")}}
|
onClick=(action "onShowAddModal")}}
|
||||||
{{ui/ui-button-gap}}
|
{{#if isAuthProviderDocumize}}
|
||||||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Plus
|
{{ui/ui-button-gap}}
|
||||||
label="Invite New User"
|
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Plus
|
||||||
onClick=(action "onShowInviteModal")}}
|
label="Invite New User"
|
||||||
|
onClick=(action "onShowInviteModal")}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Ui::UiSpacer @size="300" />
|
<Ui::UiSpacer @size="300" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue