Skip to content

Commit

Permalink
Fixed issue: wrong permission check in survey theme selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 31, 2018
1 parent 82faa38 commit e0d9284
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -12,7 +12,7 @@
<?php
$athemeList = Template::getTemplateListWithPreviews();
foreach ($athemeList as $themeName => $preview) {
if (Permission::model()->hasGlobalPermission('themes','read') || Permission::model()->hasthemePermission($themeName) ) { ?>
if (Permission::model()->hasGlobalPermission('themes','read') || Permission::model()->hasTemplatePermission($themeName) ) { ?>
<option value='<?php echo $themeName; ?>'>
<?php echo $themeName; ?>
</option>
Expand Down

0 comments on commit e0d9284

Please sign in to comment.