bug fix: export user details without User.ShowDetails claim
This commit is contained in:
@@ -87,9 +87,6 @@ namespace Disco.Services.Plugins.Features.DetailsProvider
|
|||||||
|
|
||||||
public Dictionary<string, string> GetDetails(User user)
|
public Dictionary<string, string> GetDetails(User user)
|
||||||
{
|
{
|
||||||
if (!UserService.CurrentAuthorization.HasAll(Claims.User.Show, Claims.User.ShowDetails))
|
|
||||||
return new Dictionary<string, string>();
|
|
||||||
|
|
||||||
if (user.UserDetails != null)
|
if (user.UserDetails != null)
|
||||||
{
|
{
|
||||||
return user.UserDetails
|
return user.UserDetails
|
||||||
|
|||||||
Reference in New Issue
Block a user