Hello @Mewriick
Im having some trouble using the permission feature
My final goal is to forbid the editing of a column, in order to complete that goal, i followed the provided example :
First i created a class which implements ICurrentUserPermission,
Then i provided the configuration for permission restriction,
Finally i registered ICurrentUserPermission into DI container as Singleton
The problem is that i can still edit the column i try to make not editable...
(1) - In TestCurrentUserPermission.cs file
namespace IndicateurRHFront.GridConfigurations
{
public class TestCurrentUserPermission : ICurrentUserPermission
{
public bool HasClaim(string claimName)
{
if (claimName == "Admin")
{
return true;
}
return false;
}
public bool IsInRole(string roleName)
{
if (roleName == "AdminRole")
{
return true;
}
return false;
}
}
}
Hello @Mewriick Im having some trouble using the permission feature My final goal is to forbid the editing of a column, in order to complete that goal, i followed the provided example :
The problem is that i can still edit the column i try to make not editable...
(1) - In TestCurrentUserPermission.cs file
(2) - In TestGridConfiguration.cs file
(None is not defined in TestCurrentUserPermission so that it returns false)
(3) - In Startup.cs file
I may have missed something...