Skip to content

Commit

Permalink
Fixed add button in my memberships page
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Mar 30, 2023
1 parent abe9f94 commit 3e705af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'controller' => 'grouper_groups', 'action' => 'leavegroup'
]),
'members' => true,
'addSubscribers' => true,
'addSubscribers' => false,
)); ?>
<?php if (count($groupmemberships) < 1 && count($wgmemberships) < 1) : ?>
<div class="alert alert-info">
Expand Down
3 changes: 2 additions & 1 deletion webroot/js/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default {
canAdd() {
if (!this.error) { return this.add; }
if (this.error) {
return this.error.status !== 403;
const hasAccess = this.error.status !== 403;
return hasAccess && this.add;
}
}
},
Expand Down

0 comments on commit 3e705af

Please sign in to comment.