Authorize IdentityUserLookupAppService

pull/786/head^2
Halil ibrahim Kalkan 6 years ago
parent 54d14d952d
commit 4ad8309c44

@ -21,6 +21,8 @@ namespace Volo.Abp.Identity
usersPermission.AddChild(IdentityPermissions.Users.Update, L("Permission:Edit"));
usersPermission.AddChild(IdentityPermissions.Users.Delete, L("Permission:Delete"));
usersPermission.AddChild(IdentityPermissions.Users.ManagePermissions, L("Permission:ChangePermissions"));
identityGroup.AddPermission(IdentityPermissions.UserLookup.Default, L("Permission:UserLookup"));
}
private static LocalizableString L(string name)

@ -22,6 +22,11 @@
public const string ManagePermissions = Default + ".ManagePermissions";
}
public static class UserLookup
{
public const string Default = GroupName + ".UserLookup";
}
public static string[] GetAll()
{
return new[]

@ -7,6 +7,7 @@
"Permission:Edit": "Edit",
"Permission:Delete": "Delete",
"Permission:ChangePermissions": "Change permissions",
"Permission:UserManagement": "User management"
"Permission:UserManagement": "User management",
"Permission:UserLookup": "User lookup"
}
}

@ -7,6 +7,7 @@
"Permission:Edit": "Düzenleme",
"Permission:Delete": "Silme",
"Permission:ChangePermissions": "İzinleri değiştirme",
"Permission:UserManagement": "Kullanıcı yönetimi"
"Permission:UserManagement": "Kullanıcı yönetimi",
"Permission:UserLookup": "Kullanıcı sorgulama"
}
}

@ -5,7 +5,7 @@ using Volo.Abp.Users;
namespace Volo.Abp.Identity
{
//TODO: Authorization (for clients, not users)
[Authorize(IdentityPermissions.UserLookup.Default)]
public class IdentityUserLookupAppService : IdentityAppServiceBase, IIdentityUserLookupAppService
{
protected IdentityUserRepositoryExternalUserLookupServiceProvider UserLookupServiceProvider { get; }

Loading…
Cancel
Save