Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OATS-CADC
ac
Commits
cbe3df3b
Commit
cbe3df3b
authored
Mar 24, 2016
by
Brian Major
Browse files
s1890 - fixed to remove user member
parent
9c6e670f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cadcAccessControl-Server/src/ca/nrc/cadc/ac/server/web/groups/RemoveUserMemberAction.java
View file @
cbe3df3b
...
...
@@ -99,7 +99,11 @@ public class RemoveUserMemberAction extends AbstractGroupAction
Group
group
=
groupPersistence
.
getGroup
(
this
.
groupName
);
Principal
userPrincipal
=
AuthenticationUtil
.
createPrincipal
(
this
.
userID
,
this
.
userIDType
);
User
toRemove
=
getUserPersistence
().
getUser
(
userPrincipal
);
User
user
=
getUserPersistence
().
getAugmentedUser
(
userPrincipal
);
User
toRemove
=
new
User
();
toRemove
.
getIdentities
().
addAll
(
user
.
getIdentities
());
if
(!
group
.
getUserMembers
().
remove
(
toRemove
))
{
throw
new
MemberNotFoundException
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment