Skip to content

Commit

Permalink
typo, refs #1129
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Sep 2, 2017
1 parent bc4c6e1 commit 806e13d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ class FormHandler {
«locking.addPageLock(it
}
} else {
$permissionLevel = «IF needsApproval»in_array($objectType, ['«getAllEntities.filter[workflow != EntityWorkflowType.NONE].map[name.formatForCode].join('\', \''']) ? ACCESS_COMMENT : ACCESS_EDIT«ELSE»ACCESS_EDIT«ENDIF»;
$permissionLevel = «IF needsApproval»in_array($this->objectType, ['«getAllEntities.filter[workflow != EntityWorkflowType.NONE].map[name.formatForCode].join('\', \''']) ? ACCESS_COMMENT : ACCESS_EDIT«ELSE»ACCESS_EDIT«ENDIF»;
if (!$this->permissionApi->hasPermission($this->permissionComponent, '::', $permissionLevel)) {
throw new AccessDeniedException();
}
Expand Down

0 comments on commit 806e13d

Please sign in to comment.