mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 19:31:39 +00:00
add createEreader permission
This commit is contained in:
parent
112a856156
commit
dbc04d5bb3
1 changed files with 2 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ class User extends Model {
|
|||
canAccessExplicitContent: 'accessExplicitContent',
|
||||
canAccessAllLibraries: 'accessAllLibraries',
|
||||
canAccessAllTags: 'accessAllTags',
|
||||
canCreateEReader: 'createEreader',
|
||||
tagsAreDenylist: 'selectedTagsNotAccessible',
|
||||
// Direct mapping for array-based permissions
|
||||
allowedLibraries: 'librariesAccessible',
|
||||
|
|
@ -105,6 +106,7 @@ class User extends Model {
|
|||
update: type === 'root' || type === 'admin',
|
||||
delete: type === 'root',
|
||||
upload: type === 'root' || type === 'admin',
|
||||
createEreader: type === 'root' || type === 'admin',
|
||||
accessAllLibraries: true,
|
||||
accessAllTags: true,
|
||||
accessExplicitContent: type === 'root' || type === 'admin',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue