We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a5d935d0 authored by Mike Sheldon's avatar Mike Sheldon

Ensure user has permission to add/edit tracks

parent 09d71ce3
......@@ -29,6 +29,12 @@ require_once('utils/licenses.php');
$artist = new Artist(urldecode($_GET['artist']));
$album = new Album(urldecode($_GET['album']), $artist->name);
if(!isset($this_user) || !$this_user->manages($artist->name)) {
$smarty->assign('pageheading', 'Permission denied');
$smarty->assign('error', 'You don\'t have permission to edit this artist\'s details.');
$edit = false;
if(isset($_GET['track'])) {
$edit = true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment