Add EnableUserEditing, to control whether a regular user can change their own details (default true)

This commit is contained in:
Deluan committed 2021-05-02 17:11:12 -04:00
1 parent 2ff1c79b64
commit 7feda4bea4
6 files changed
+22

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ const defaultConfig = {
devFastAccessCoverArt: false,
enableStarRating: true,
defaultTheme: 'Dark',
enableUserEditing: true,
}
let config
+3
View File
@@ -80,6 +80,9 @@ const CustomUserMenu = ({ onClick, ...rest }) => {
return null
}
if (permissions !== 'admin') {
if (!config.enableUserEditing) {
return null
}
userResource.icon = PersonIcon
} else {
userResource.icon = SupervisorAccountIcon