Failed Conditions
Pull Request — bugsquish (#574)
by Simon
06:36 queued 04:00
created
includes/Pages/PageEditComment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,17 +44,17 @@
 block discarded – undo
44 44
         $currentUser = User::getCurrent($database);
45 45
 
46 46
         if ($comment->getUser() !== $currentUser->getId()) {
47
-            if(!$this->barrierTest('editOthers', $currentUser)) {
47
+            if (!$this->barrierTest('editOthers', $currentUser)) {
48 48
                 throw new AccessDeniedException($this->getSecurityManager());
49 49
             }
50 50
 
51
-            if($comment->getVisibility() === 'checkuser'
51
+            if ($comment->getVisibility() === 'checkuser'
52 52
                 && !$this->barrierTest('seeCheckuserComments', $currentUser, 'RequestData')) {
53 53
 
54 54
                 throw new AccessDeniedException($this->getSecurityManager());
55 55
             }
56 56
 
57
-            if($comment->getVisibility() === 'admin'
57
+            if ($comment->getVisibility() === 'admin'
58 58
                 && !$this->barrierTest('seeRestrictedComments', $currentUser, 'RequestData')) {
59 59
 
60 60
                 throw new AccessDeniedException($this->getSecurityManager());
Please login to merge, or discard this patch.