Ejemplo n.º 1
0
        private bool HasRealmAccessLevel(ResourceAuthorizationContext context, Realm realm, RealmAccessLevel level)
        {
            var actor = GetActor(context);

            if (actor == null)
            {
                return(false);
            }

            return(realm.GetAccessLevel(actor) >= level);
        }
Ejemplo n.º 2
0
 public RealmAccessListEntry(Player player, RealmAccessLevel level)
 {
     this.Player = player;
     this.Level  = level;
 }