Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
00dc0783
Commit
00dc0783
authored
Mar 01, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(playlist): render playlists if playlist id is invalid
close #4209
parent
62b21c58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
pkg/api/playlist.go
+5
-0
public/app/features/playlist/playlist_routes.js
+3
-0
No files found.
pkg/api/playlist.go
View file @
00dc0783
...
...
@@ -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
...
...
public/app/features/playlist/playlist_routes.js
View file @
00dc0783
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment