File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments