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

Fix : Check multiple profile #1274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

xylphid
Copy link

@xylphid xylphid commented Oct 12, 2018

This fix allow multiple profile check with the secure module because the original method only allow user having all specified profiles to access the resource.
It is now possible to add a list of granted profile to a controller or method :

@With(Secure.class)
@Check({"ADMIN","MANAGER"})
public class MyManageableController extends Controller {
    ...
}

AdminUser(role=ADMIN) and ManagerUser(role=MANAGER) will both be granted.

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

Successfully merging this pull request may close these issues.

1 participant