Skip to content

Commit

Permalink
Fixed bug #18799: Admin user with full CPDB permissions can no access…
Browse files Browse the repository at this point in the history
… attribute section. (#3361)

Co-authored-by: Lapiu Dev <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Sep 15, 2023
1 parent 5c4fb4e commit 5bc3d5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/admin/ParticipantsAction.php
Expand Up @@ -1361,6 +1361,8 @@ public function changeblackliststatus()
*/
public function attributeControl()
{
$this->checkPermission('read');

$title = gT("Attribute management");
$model = new ParticipantAttributeName();
if (Yii::app()->request->getParam('ParticipantAttributeName')) {
Expand Down
Expand Up @@ -73,7 +73,9 @@
],
]
);
}

if (Permission::model()->hasGlobalPermission('participantpanel', 'read')) {
$this->widget(
'ext.ButtonWidget.ButtonWidget',
[
Expand Down

0 comments on commit 5bc3d5f

Please sign in to comment.