forked from Public/pics
EditTag: on saving, redirect users to a page they can see
This commit is contained in:
parent
27f69b0a74
commit
daa8b051c5
@ -182,8 +182,11 @@ class EditTag extends HTMLController
|
||||
$tag->save();
|
||||
}
|
||||
|
||||
// Redirect to the tag management page.
|
||||
// Redirect to a clean page
|
||||
if (Registry::get('user')->isAdmin())
|
||||
header('Location: ' . BASEURL . '/managetags/');
|
||||
else
|
||||
header('Location: ' . BASEURL . '/edittag/?id=' . $id_tag);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user