SHARE
TWEET

Untitled

a guest Aug 20th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top