Helius
2020-11-13 e3bf96ad189e12d7c2201734e9121063e7f39a37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.xcong.excoin.common.authentication;
 
import com.xcong.excoin.common.annotation.Helper;
import org.apache.shiro.authz.AuthorizationInfo;
 
/**
 * @author MrBird
 */
@Helper
public class ShiroHelper extends ShiroRealm {
 
    /**
     * 获取当前用户的角色和权限集合
     *
     * @return AuthorizationInfo
     */
    public AuthorizationInfo getCurrentUserAuthorizationInfo() {
        return super.doGetAuthorizationInfo(null);
    }
}