Skip to content

Commit 99cf432

Browse files
committed
Frontend: Make sure admins can see usage info in navigation.vue
Signed-off-by: Michael Mayer <[email protected]>
1 parent 91c7052 commit 99cf432

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/component/navigation.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ export default {
992992
}
993993
994994
const canManagePhotos = this.$config.allow("photos", "manage");
995+
const canSeeUsage = this.$session.isAdmin() || (canManagePhotos && this.$config.feature("files"));
995996
const isDemo = this.$config.get("demo");
996997
const isPro = this.$config.isPro();
997998
const isPublic = this.$config.get("public");
@@ -1020,7 +1021,7 @@ export default {
10201021
featMembership: tier < 3 && isSuperAdmin && !isPublic && !isDemo,
10211022
featFeedback: !hasScope && tier >= 6 && isSuperAdmin && !isPublic && !isDemo,
10221023
featFiles: this.$config.feature("files"),
1023-
featUsage: canManagePhotos && this.$config.feature("files") && this.$config.values?.usage?.filesTotal,
1024+
featUsage: canSeeUsage && this.$config.values?.usage?.filesTotal,
10241025
isRestricted: isRestricted,
10251026
isMini: localStorage.getItem("navigation.mode") !== "false" || isRestricted,
10261027
isDemo: isDemo,

0 commit comments

Comments
 (0)