mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 11:21:36 +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',
|
canAccessExplicitContent: 'accessExplicitContent',
|
||||||
canAccessAllLibraries: 'accessAllLibraries',
|
canAccessAllLibraries: 'accessAllLibraries',
|
||||||
canAccessAllTags: 'accessAllTags',
|
canAccessAllTags: 'accessAllTags',
|
||||||
|
canCreateEReader: 'createEreader',
|
||||||
tagsAreDenylist: 'selectedTagsNotAccessible',
|
tagsAreDenylist: 'selectedTagsNotAccessible',
|
||||||
// Direct mapping for array-based permissions
|
// Direct mapping for array-based permissions
|
||||||
allowedLibraries: 'librariesAccessible',
|
allowedLibraries: 'librariesAccessible',
|
||||||
|
|
@ -105,6 +106,7 @@ class User extends Model {
|
||||||
update: type === 'root' || type === 'admin',
|
update: type === 'root' || type === 'admin',
|
||||||
delete: type === 'root',
|
delete: type === 'root',
|
||||||
upload: type === 'root' || type === 'admin',
|
upload: type === 'root' || type === 'admin',
|
||||||
|
createEreader: type === 'root' || type === 'admin',
|
||||||
accessAllLibraries: true,
|
accessAllLibraries: true,
|
||||||
accessAllTags: true,
|
accessAllTags: true,
|
||||||
accessExplicitContent: type === 'root' || type === 'admin',
|
accessExplicitContent: type === 'root' || type === 'admin',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue