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 Notifier from '../../mixins/notifier';
|
||||
import Modals from '../../mixins/modal';
|
||||
import AuthProvider from '../../mixins/auth';
|
||||
import stringUtil from '../../utils/string';
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend(Notifier, Modals, {
|
||||
export default Component.extend(Notifier, Modals, AuthProvider, {
|
||||
groupSvc: service('group'),
|
||||
spaceSvc: service('folder'),
|
||||
userSvc: service('user'),
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
<div class="title" {{action "toggleSpacePerms"}}>
|
||||
Space Permissions Explained
|
||||
{{#if showSpacePermExplain}}
|
||||
<i class="dicon {{constants.Icon.ArrowSmallUp}}" />
|
||||
<i class="dicon {{constants.Icon.ArrowSmallUp}}"></i>
|
||||
{{else}}
|
||||
<i class="dicon {{constants.Icon.ArrowSmallDown}}" />
|
||||
<i class="dicon {{constants.Icon.ArrowSmallDown}}"></i>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="perms space-perms">
|
||||
|
@ -27,9 +27,9 @@
|
|||
<div class="title" {{action "toggleDocumentPerms"}}>
|
||||
Document Permissions Explained
|
||||
{{#if showDocumentPermExplain}}
|
||||
<i class="dicon {{constants.Icon.ArrowSmallUp}}" />
|
||||
<i class="dicon {{constants.Icon.ArrowSmallUp}}"></i>
|
||||
{{else}}
|
||||
<i class="dicon {{constants.Icon.ArrowSmallDown}}" />
|
||||
<i class="dicon {{constants.Icon.ArrowSmallDown}}"></i>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="perms document-perms">
|
||||
|
@ -61,10 +61,12 @@
|
|||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Person
|
||||
label="Add Existing User"
|
||||
onClick=(action "onShowAddModal")}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Plus
|
||||
label="Invite New User"
|
||||
onClick=(action "onShowInviteModal")}}
|
||||
{{#if isAuthProviderDocumize}}
|
||||
{{ui/ui-button-gap}}
|
||||
{{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Plus
|
||||
label="Invite New User"
|
||||
onClick=(action "onShowInviteModal")}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<Ui::UiSpacer @size="300" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue