Esempio n. 1
0
        private void CreateRolePermissions(string roleId, PermissionUtils.Permission p)
        {
            var cs = PermissionUtils.GrantPermissionAndChildPermissionsToRole(p, roleId);

            foreach (var c in cs)
            {
                _rolePermissionApplicationService.When(c);
            }
        }