You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi every one
i make new class for new permissions and added the attribute of the new permissions to the tables but nothing happened could you please help me with that
using Serenity.Extensibility;
using System.ComponentModel;
namespace KRVoting.Dashboard
{
[NestedPermissionKeys]
[DisplayName("Dashboard")]
public class PermissionKeys
{
[DisplayName("Voting")]
public class Voting
{
[ImplicitPermission(General), ImplicitPermission(View)]
public const string Delete = "Dashboard:Voting:Delete";
[Description("Create/Update"), ImplicitPermission(General), ImplicitPermission(View)]
public const string Modify = "Dashboard:Voting:Modify";
public const string View = "Dashboard:Voting:View";
}
[Description("[General]")]
public const string General = "Dashboard:General";
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi every one
i make new class for new permissions and added the attribute of the new permissions to the tables but nothing happened could you please help me with that
using Serenity.Extensibility;
using System.ComponentModel;
namespace KRVoting.Dashboard
{
[NestedPermissionKeys]
[DisplayName("Dashboard")]
public class PermissionKeys
{
[DisplayName("Voting")]
public class Voting
{
[ImplicitPermission(General), ImplicitPermission(View)]
public const string Delete = "Dashboard:Voting:Delete";
[Description("Create/Update"), ImplicitPermission(General), ImplicitPermission(View)]
public const string Modify = "Dashboard:Voting:Modify";
public const string View = "Dashboard:Voting:View";
}
}
and in votingRow i added the attribute
[ConnectionKey("Dashboard"), Module("Dashboard"), TableName("[dbo].[voting]")]
[DisplayName("Voting"), InstanceName("Voting")]
Beta Was this translation helpful? Give feedback.
All reactions