mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-09-01 13:51:27 +02:00
add createEreader permission
This commit is contained in:
parent
112a856156
commit
dbc04d5bb3
@ -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…
Reference in New Issue
Block a user