This content has been marked as final.
Show 2 replies
-
1. Re: how can I create Test for s:hasPermission
tyshan.tyshanchn.gmail.com Apr 8, 2011 5:05 AM (in response to tyshan.tyshanchn.gmail.com)failed when use such codes as follows:
@Override
protected void beforeRequest(){
super.beforeRequest();
try {Identity.instance().checkPermission(
dialPlan
,
view
);
} catch (AuthorizationException e) {
System.out.println(e.getMessage());
assert false;
}
}Is there any good way for checking a permission,which is defined in the rules.
Best regards
Tyshan
-
2. Re: how can I create Test for s:hasPermission
tyshan.tyshanchn.gmail.com Apr 11, 2011 5:25 AM (in response to tyshan.tyshanchn.gmail.com)hi
I got the answer
use Identity.instance().checkPermission("#{}");
it will work.
Tysha