예제 #1
0
        public IActionResult GetAllPermissions()
        {
            var allPermissions = _claimsService.GetAllPermissions();

            if (!TenantSpec.BelongsToSite(User.GetUserTenant()))
            {
                allPermissions = allPermissions.Where(p => p.Scope != PermScope.GLOBAL).ToList();
            }
            return(Ok(_mapper.Map <List <PermissionDto> >(allPermissions)));
        }