mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
LibraryElements: remove viewer check when connecting a dashboard on General folder (#93737)
This commit is contained in:
parent
d24d59299b
commit
40ce035ed7
@ -58,7 +58,7 @@ func (l *LibraryElementService) requireEditPermissionsOnFolder(ctx context.Conte
|
||||
}
|
||||
|
||||
func (l *LibraryElementService) requireViewPermissionsOnFolder(ctx context.Context, user identity.Requester, folderID int64) error {
|
||||
if isGeneralFolder(folderID) && user.HasRole(org.RoleViewer) {
|
||||
if isGeneralFolder(folderID) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user