mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Implement User API support
Direct User API usage impacted UI usage of API. Moved setting of new user permissions up the call chain.
This commit is contained in:
parent
e47c5e61fc
commit
08557c369c
2 changed files with 17 additions and 7 deletions
|
@ -20,9 +20,9 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
this.set('newUser', { firstname: '', lastname: '', email: '', active: true });
|
||||
this.set('newUser', { firstname: '', lastname: '', email: '', editor: true, viewUsers: true, active: true });
|
||||
},
|
||||
|
||||
|
||||
actions: {
|
||||
onOpenUserModal() {
|
||||
this.modalOpen("#add-user-modal", {"show": true}, '#newUserFirstname');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue