tag_history should check if anon is allowed to revert tags

git-svn-id: file:///home/shish/svn/shimmie2/trunk@695 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-01-19 17:14:13 +00:00
parent 0e4e5f02c8
commit f38da63bca

@ -24,7 +24,10 @@ class Tag_History extends Extension {
if($event->get_arg(0) == "revert")
{
// this is a request to revert to a previous version of the tags
$this->process_revert_request($_POST['revert']);
global $config, $user;
if($config->get_bool("tag_edit_anon") || !$user->is_anonymous()) {
$this->process_revert_request($_POST['revert']);
}
}
else if($event->count_args() == 1)
{