Skip to content

Commit

Permalink
Dev Fixed more issues with template permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 2, 2013
1 parent 8d79505 commit 7830224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -5084,7 +5084,7 @@ function hasTemplateManageRights($userid, $templatefolder) {
$criteria = new CDbCriteria;
$criteria->addColumnCondition(array('uid' => $userid));
$criteria->addSearchCondition('folder', $templatefolder);
$query=Templates_rights::model()->find($criteria);
$query=Permission::model()->find($criteria);
//if ($result->RecordCount() == 0) return false;
if (is_null($query)) return false;

Expand Down

0 comments on commit 7830224

Please sign in to comment.