/// <summary>
        /// 设置角色权限
        /// </summary>
        /// <param name="roleId">角色Id</param>
        /// <param name="permissions">权限值</param>
        /// <returns></returns>
        public ActionResult SavePermission(string roleId, string permissions)
        {
            _base_SysRoleBusiness.SavePermission(roleId, permissions.ToList <string>());

            PermissionManage.ClearUserPermissionCache();

            return(Success());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 设置角色权限
        /// </summary>
        /// <param name="roleId">角色Id</param>
        /// <param name="permissions">权限值</param>
        /// <returns></returns>
        public ActionResult SavePermission(string roleId, string permissions)
        {
            _base_SysRoleBusiness.SavePermission(roleId, permissions.ToList <string>());

            return(Success());
        }