tag_history should check if anon is allowed to revert tags
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@696 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
fce0aa48da
commit
68901bfda5
@ -24,8 +24,11 @@ class Tag_History extends Extension {
|
|||||||
if($event->get_arg(0) == "revert")
|
if($event->get_arg(0) == "revert")
|
||||||
{
|
{
|
||||||
// this is a request to revert to a previous version of the tags
|
// this is a request to revert to a previous version of the tags
|
||||||
|
global $config, $user;
|
||||||
|
if($config->get_bool("tag_edit_anon") || !$user->is_anonymous()) {
|
||||||
$this->process_revert_request($_POST['revert']);
|
$this->process_revert_request($_POST['revert']);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if($event->count_args() == 1)
|
else if($event->count_args() == 1)
|
||||||
{
|
{
|
||||||
// must be an attempt to view a tag history
|
// must be an attempt to view a tag history
|
||||||
|
Loading…
x
Reference in New Issue
Block a user