Skip to content

Commit

Permalink
#647 check if user is alaAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
schoicsiro committed Sep 18, 2023
1 parent 8342719 commit cf26e1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ profileEditor.controller('UserAccessController', function (messageService, util,
};

self.privateModeChanged = function() {
if (self.opus.privateCollection) {
self.roles.push(userRole);
} else {
self.roles.splice(4, 1)
}
self.roles.push(userRole);
};

function showPopup(user) {
Expand Down
4 changes: 3 additions & 1 deletion grails-app/views/opus/edit.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@

<additional-statuses opus="opusCtrl.opus"></additional-statuses>

<g:include controller="opus" action="editDeleteCollectionPanel" params="[opusId: params.opusId]"/>
<g:if test="${params.isALAAdmin}">
<g:include controller="opus" action="editDeleteCollectionPanel" params="[opusId: params.opusId]"/>
</g:if>
</g:if>

</div>
Expand Down

0 comments on commit cf26e1c

Please sign in to comment.