LibraryElements: remove viewer check when connecting a dashboard on General folder (#93737)

This commit is contained in:
Matheus Macabu 2024-09-25 16:16:59 +02:00 committed by GitHub
parent d24d59299b
commit 40ce035ed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}