Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
PWK-688 fix for permission check on agenda/edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnswaanen committed Sep 14, 2018
1 parent 6c8d6cb commit d654680
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class views_handler_field_cdb_item_operations extends views_handler_field {
$user = $cf_account = DrupalCultureFeed::getLoggedInUser();
$udb_permission = user_access('edit culturefeed events') && ($extended_entity->getEntity()->getCreatedBy() == $user->mbox);

if ($udb_permission[$extended_entity->getId()] == 'true') {
if ($udb_permission) {
foreach ($ops as $op => $op_details) {
$path = culturefeed_entry_ui_entity_path($extended_entity, $op);
if ($path && user_access($op_details['permission'])) {
Expand Down

0 comments on commit d654680

Please sign in to comment.