Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate delete user failure when using organizationRestResource.findByUsers in @PreAuthorize #26

Open
wjans opened this issue Oct 5, 2020 · 0 comments
Assignees

Comments

@wjans
Copy link
Collaborator

wjans commented Oct 5, 2020

Using below implementation on the security service check : com.ixortalk.organization.api.service.SecurityService#hasAdminAccess(com.ixortalk.organization.api.domain.User)

return organizationRestResource.findByUsers(user).map(this::isAdminOfOrganization).orElse(true)

makes deleting a user fail when being an organization admin.

To be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant