mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Folders: Correctly show new folder button under root folder (#94687)
show new folder button under root folder if nested folders are disabled and user has the right perms
This commit is contained in:
parent
aaba5a43bd
commit
284c2d6f71
@ -8,7 +8,7 @@ function checkFolderPermission(action: AccessControlAction, folderDTO?: FolderDT
|
||||
|
||||
function checkCanCreateFolders(folderDTO?: FolderDTO) {
|
||||
// Can only create a folder if we have permissions and either we're at root or nestedFolders is enabled
|
||||
if (folderDTO && !config.featureToggles.nestedFolders) {
|
||||
if (folderDTO && folderDTO.uid !== 'general' && !config.featureToggles.nestedFolders) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user