Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (loginBean.getCurrentUserShiro().isPermitted(permissionName)) {
- return true;
- }
- return false;
- }
- /**
- * If one of the permission is true
- *
- * @param strings
- * @return
- */
- public boolean checkPermission(List<String> list) {
- int i = list.size();
- if (i != 0) {
- for (String s : list) {
- if (loginBean.getCurrentUserShiro().isPermitted(s)) {
- return true;
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement