mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-26 18:27:09 +01:00
Add EnableUserEditing, to control whether a regular user can change their own details (default true)
This commit is contained in:
parent
2ff1c79b64
commit
7feda4bea4
6 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue