Merge pull request #11554 from grafana/11553_viewer_general_access

User with org viewer role permission fixes
This commit is contained in:
Daniel Lee
2018-04-17 13:50:45 +02:00
committed by GitHub
7 changed files with 205 additions and 44 deletions

View File

@ -224,6 +224,10 @@ func GetFolderUrl(folderUid string, slug string) string {
return fmt.Sprintf("%s/dashboards/f/%s/%s", setting.AppSubUrl, folderUid, slug)
}
type ValidateDashboardBeforeSaveResult struct {
IsParentFolderChanged bool
}
//
// COMMANDS
//
@ -268,6 +272,7 @@ type ValidateDashboardBeforeSaveCommand struct {
OrgId int64
Dashboard *Dashboard
Overwrite bool
Result *ValidateDashboardBeforeSaveResult
}
//