aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/admin.component.ts20
1 files changed, 16 insertions, 4 deletions
diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts
index 319d50cda..7fc83351b 100644
--- a/client/src/app/+admin/admin.component.ts
+++ b/client/src/app/+admin/admin.component.ts
@@ -74,12 +74,24 @@ export class AdminComponent implements OnInit {
74 }) 74 })
75 } 75 }
76 76
77 if (this.hasUsersRight()) this.menuEntries.push({ label: this.i18n('Users'), routerLink: '/admin/users' }) 77 if (this.hasUsersRight()) {
78 this.menuEntries.push({ label: this.i18n('Users'), routerLink: '/admin/users' })
79 }
80
78 if (this.hasServerFollowRight()) this.menuEntries.push(federationItems) 81 if (this.hasServerFollowRight()) this.menuEntries.push(federationItems)
79 if (this.hasAbusesRight() || this.hasVideoBlocklistRight()) this.menuEntries.push(moderationItems) 82 if (this.hasAbusesRight() || this.hasVideoBlocklistRight()) this.menuEntries.push(moderationItems)
80 if (this.hasConfigRight()) this.menuEntries.push({ label: this.i18n('Configuration'), routerLink: '/admin/config' }) 83
81 if (this.hasPluginsRight()) this.menuEntries.push({ label: this.i18n('Plugins/Themes'), routerLink: '/admin/plugins' }) 84 if (this.hasConfigRight()) {
82 if (this.hasJobsRight() || this.hasLogsRight() || this.hasDebugRight()) this.menuEntries.push({ label: this.i18n('System'), routerLink: '/admin/system' }) 85 this.menuEntries.push({ label: this.i18n('Configuration'), routerLink: '/admin/config' })
86 }
87
88 if (this.hasPluginsRight()) {
89 this.menuEntries.push({ label: this.i18n('Plugins/Themes'), routerLink: '/admin/plugins' })
90 }
91
92 if (this.hasJobsRight() || this.hasLogsRight() || this.hasDebugRight()) {
93 this.menuEntries.push({ label: this.i18n('System'), routerLink: '/admin/system' })
94 }
83 } 95 }
84 96
85 hasUsersRight () { 97 hasUsersRight () {