public async Task <IReadOnlyList <ResourcePermissions> > GetResourcePermissionsAsync(string roleId)
        {
            var permissions = await _permissionStore.GetRoleStaticPermissionsAsync(roleId);

            return(_resources
                   .Select(r => ConvertResource(r, permissions))
                   .OrderBy(r => r.Name)
                   .ToList());
        }