mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Persist space permissions for groups and users
This commit is contained in:
parent
0d39f7251e
commit
7ccb3b4658
16 changed files with 320 additions and 157 deletions
|
@ -11,6 +11,9 @@
|
|||
|
||||
import EmberObject from "@ember/object";
|
||||
|
||||
// access like so:
|
||||
// let constants = this.get('constants');
|
||||
|
||||
let constants = EmberObject.extend({
|
||||
// Document
|
||||
ProtectionType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
||||
|
@ -48,7 +51,15 @@ let constants = EmberObject.extend({
|
|||
PageType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
||||
Tab: 'tab',
|
||||
Section: 'section'
|
||||
}
|
||||
},
|
||||
|
||||
// Who a permission record relates to
|
||||
WhoType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
||||
User: 'user',
|
||||
Group: 'role'
|
||||
},
|
||||
|
||||
EveryoneUserId: "0"
|
||||
});
|
||||
|
||||
export default { constants }
|
Loading…
Add table
Add a link
Reference in a new issue