Add EnableUserEditing, to control whether a regular user can change their own details (default true)
This commit is contained in:
@@ -17,6 +17,7 @@ const defaultConfig = {
|
||||
devFastAccessCoverArt: false,
|
||||
enableStarRating: true,
|
||||
defaultTheme: 'Dark',
|
||||
enableUserEditing: true,
|
||||
}
|
||||
|
||||
let config
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user