From cf26e1c266dcfbb48a4d7f760370bb2bdedf6593 Mon Sep 17 00:00:00 2001 From: Steven Choi Date: Mon, 18 Sep 2023 10:14:43 +1000 Subject: [PATCH] #647 check if user is alaAdmin --- .../profileEditor/controllers/UserAccessController.js | 6 +----- grails-app/views/opus/edit.gsp | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/grails-app/assets/javascripts/profileEditor/controllers/UserAccessController.js b/grails-app/assets/javascripts/profileEditor/controllers/UserAccessController.js index 1e1ff7b5..60012cc7 100644 --- a/grails-app/assets/javascripts/profileEditor/controllers/UserAccessController.js +++ b/grails-app/assets/javascripts/profileEditor/controllers/UserAccessController.js @@ -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) { diff --git a/grails-app/views/opus/edit.gsp b/grails-app/views/opus/edit.gsp index 88c4983d..7d221e05 100644 --- a/grails-app/views/opus/edit.gsp +++ b/grails-app/views/opus/edit.gsp @@ -122,7 +122,9 @@ - + + +