Пример #1
0
 public override string DisabledReason(ISession session, INakedObject target, ILifecycleManager lifecycleManager, IMetamodelManager manager)
 {
     return(FacetUtils.IsAllowed(session, roles, users) ? null : "Not authorized to edit");
 }
 public override string HiddenReason(ISession session, INakedObjectAdapter target, ILifecycleManager lifecycleManager, IMetamodelManager manager) => FacetUtils.IsAllowed(session, roles, users) ? null : "Not authorized to view";