//後臺切換園區,從新制受權ip
Subject subject = SecurityUtils.getSubject();ci
Boolean true = subject.hasRole("...");get
調用 hasRole("...")會自動去調用 shiro 受權方法:doGetAuthorizationInfo( PrincipalCollection principals),從而去獲取當前用戶的權限it
//後臺切換園區,從新制受權ip
Subject subject = SecurityUtils.getSubject();ci
Boolean true = subject.hasRole("...");get
調用 hasRole("...")會自動去調用 shiro 受權方法:doGetAuthorizationInfo( PrincipalCollection principals),從而去獲取當前用戶的權限it