mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 14:36:27 +01:00
Update:Give full permissions to admin users except updating root or viewing root api token #137
This commit is contained in:
1 parent
195a30096f
commit
2e070227ab
17 files changed
+75
-71
No files matched your search
@@ -25,11 +25,11 @@ export default {
|
||||
return {}
|
||||
},
|
||||
computed: {
|
||||
userIsRoot() {
|
||||
return this.$store.getters['user/getIsRoot']
|
||||
userIsAdminOrUp() {
|
||||
return this.$store.getters['user/getIsAdminOrUp']
|
||||
},
|
||||
configRoutes() {
|
||||
if (!this.userIsRoot) {
|
||||
if (!this.userIsAdminOrUp) {
|
||||
return [
|
||||
{
|
||||
id: 'config-stats',
|
||||
|
||||
Reference in new issue
Block a user