Skip to content

Commit ab06a0a

Browse files
committed
Merge branch 'Dev' of https://github.com/Dapplesoft-AD/AuthServer into mashrafe
2 parents 575b2a1 + 88796a5 commit ab06a0a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Web.Api/Endpoints/UserProfiles/Get.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void MapEndpoint(IEndpointRouteBuilder app)
2323

2424
return result.Match(Results.Ok, CustomResults.Problem);
2525
})
26-
.HasPermission(Permissions.UsersAccess)
26+
.HasPermission(UserProfilePermissions.UsersAccess)
2727
.WithTags(Tags.UserProfile)
2828
.RequireAuthorization();
2929
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+

2+
namespace Web.Api.Endpoints.UserProfiles;
3+
4+
internal static class UserProfilePermissions
5+
{
6+
internal const string UsersAccess = "users:access";
7+
}

0 commit comments

Comments
 (0)