Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if (loginBean.getCurrentUserShiro().isPermitted(permissionName)) {
  2. return true;
  3. }
  4.  
  5. return false;
  6. }
  7.  
  8. /**
  9. * If one of the permission is true
  10. *
  11. * @param strings
  12. * @return
  13. */
  14. public boolean checkPermission(List<String> list) {
  15.  
  16. int i = list.size();
  17.  
  18. if (i != 0) {
  19. for (String s : list) {
  20. if (loginBean.getCurrentUserShiro().isPermitted(s)) {
  21. return true;
  22. }
  23. }
  24. }
  25.  
  26. return false;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement