Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmj committed Aug 22, 2017
2 parents 3736653 + b131c66 commit ed6b452
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EditorialPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ protected function sendEmails($block)
$db = $this->_db;
$userTable = $db->getTable('User');
$userSelect = $userTable->getSelect();
$userSelect->where('id IN (?)', $options['email_recipients']);
$userSelect->where('users.id IN (?)', $options['email_recipients']);
$users = $userTable->fetchObjects($userSelect);
$userEmails = array();
foreach ($users as $user) {
Expand Down Expand Up @@ -431,7 +431,7 @@ protected function adjustPermissions($block)
$users = array();
} else {
$userSelect = $userTable->getSelect();
$userSelect->where('id IN (?)', $options['allowed_users']);
$userSelect->where('users.id IN (?)', $options['allowed_users']);
$users = $userTable->fetchObjects($userSelect);
}
foreach ($users as $user) {
Expand Down
2 changes: 1 addition & 1 deletion libraries/EditorialExhibitAccessAclAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function assert(
return true;
}

if (get_class($role) == 'User' && get_class($resource) == 'Exhibit') {
if (($role instanceof User) && get_class($resource) == 'Exhibit') {
if ($privilege == 'edit') {
$db = get_db();
$accessTable = $db->getTable('EditorialExhibitAccess');
Expand Down
2 changes: 1 addition & 1 deletion plugin.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name="Editorial"
author="Roy Rosenzweig Center for History and New Media"
description="Allows editorial feedback when building exhibits"
version="1.0.2"
version="1.0.3"
support_link="http://omeka.org/forums/forum/plugins"
link="http://omeka.org/codex/Plugins/Editorial"
omeka_minimum_version="2.4"
Expand Down

0 comments on commit ed6b452

Please sign in to comment.