From 68901bfda51b0cce326a03bf7ed4c978fd67f7b1 Mon Sep 17 00:00:00 2001 From: shish Date: Sat, 19 Jan 2008 17:17:40 +0000 Subject: [PATCH] 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 --- contrib/tag_history/main.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php index 71b599f3..64bbb8e4 100644 --- a/contrib/tag_history/main.php +++ b/contrib/tag_history/main.php @@ -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) {