mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 01:16:31 -06:00
parent
62b21c586d
commit
00dc078311
@ -17,6 +17,11 @@ func ValidateOrgPlaylist(c *middleware.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if query.Result.OrgId == 0 {
|
||||
c.JsonApiErr(404, "Playlist not found", err)
|
||||
return
|
||||
}
|
||||
|
||||
if query.Result.OrgId != c.OrgId {
|
||||
c.JsonApiErr(403, "You are not allowed to edit/view playlist", nil)
|
||||
return
|
||||
|
@ -26,6 +26,9 @@ function (angular) {
|
||||
controller : 'PlaylistEditCtrl'
|
||||
})
|
||||
.when('/playlists/play/:id', {
|
||||
templateUrl: 'public/app/features/playlist/partials/playlists.html',
|
||||
controllerAs: 'ctrl',
|
||||
controller : 'PlaylistsCtrl',
|
||||
resolve: {
|
||||
init: function(playlistSrv, $route) {
|
||||
var playlistId = $route.current.params.id;
|
||||
|
Loading…
Reference in New Issue
Block a user