SECURITY: Add permission check for user is permitted to view the log type
[lhc/web/wiklou.git] / includes / changetags / ChangeTagsLogItem.php
index b78efaf..1b9fd92 100644 (file)
@@ -44,8 +44,12 @@ class ChangeTagsLogItem extends RevisionItemBase {
                return 'log_user_text';
        }
 
+       public function getAuthorActorField() {
+               return 'log_actor';
+       }
+
        public function canView() {
-               return LogEventsList::userCan( $this->row, Revision::DELETED_RESTRICTED, $this->list->getUser() );
+               return LogEventsList::userCan( $this->row, Revision::SUPPRESSED_ALL, $this->list->getUser() );
        }
 
        public function canViewContent() {