Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Static Roles Permissions #6639


User avatar
0
byeniceri created

Hi

I dont want to assign full permission to tenants. I created a static role which is named TenantAdmin. How can i assign permissions to this role? Should I override this method and where can i find GrantedPermissions list? There is similar questions but neither of them giving information about permission lists

    public StaticRoleDefinition(string roleName, MultiTenancySides side, bool grantAllPermissionsByDefault = false)
    {
        RoleName = roleName;
        Side = side;
        GrantAllPermissionsByDefault = grantAllPermissionsByDefault;
        GrantedPermissions = new List<string>();
    }