Skip to content

Commit 9076433

Browse files
authored
fix: type of the aggregated permission and made GetPermissionOverview public (#2212)
1 parent cc2b928 commit 9076433

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Services.Core/PermissionQuery.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public string Type
2727
return "deniedandallowed";
2828
if (AllowedFrom.Count > 0)
2929
return "allowed";
30-
if (AllowedFrom.Count > 0)
30+
if (DeniedFrom.Count > 0)
3131
return "denied";
3232
return null;
3333
}
@@ -81,6 +81,8 @@ private class PermissionSource
8181
/// ]
8282
/// </code>
8383
/// </example>
84+
[AllowedRoles(N.R.Everyone)]
85+
[RequiredPermissions(N.P.SeePermissions)]
8486
[ODataFunction(Category = "Permissions")]
8587
public static object GetPermissionOverview(Content content, string identity)
8688
{

0 commit comments

Comments
 (0)