|
Re: AccessControlService execLoadPermissions() called a lot [message #1709655 is a reply to message #1709595] |
Wed, 30 September 2015 06:40 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
I cannot reproduce what you are describing in in a simple Application.
When this code is executed:
if (!ACCESS.check(new ReadCompanyPermission())) {
throw new VetoException(TEXTS.get("AuthorizationFailed"));
}
My call stack looks like this:
AccessControlService(AbstractAccessControlService).getPermissions() line: 196
AccessControlService(AbstractAccessControlService).checkPermission(Permission) line: 140
ACCESS.check(Permission) line: 33
CompanyService.load(CompanyFormData) line: 37
And in the AbstractAccessControlService.getPermissions() method, the m_accessControlStore returns a permission set. execLoadPermissions is not called again.
I am not sure why you have observed this behavior. Can you provide more information?
[Updated on: Wed, 30 September 2015 06:40] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02340 seconds