예제 #1
0
 public bool Can(Permission permission, Rank rank)
 {
     return(Rank.Can(permission, rank));
 }
예제 #2
0
 /// <summary> Whether or not this player has the ability to affect the target rank, using the specified permission. </summary>
 /// <param name="permission"> Permission to check if the player had. </param>
 /// <param name="targetRank"> Player to check if this player has permission to affect. </param>
 /// <returns> True if the player has permission, otherwise false. </returns>
 public bool Can(Permission permission, [NotNull] Rank targetRank)
 {
     return(IsSuper || Rank.Can(permission, targetRank));
 }
예제 #3
0
 public bool Can(Permission permission)
 {
     return(Rank.Can(permission));
 }
예제 #4
0
 /// <summary> Whether or not this player has the specified permission. </summary>
 /// <param name="permission"> Permission to check if the player has. </param>
 /// <returns> True if the player has permission, otherwise false. </returns>
 public bool Can(Permission permission)
 {
     return(IsSuper || Rank.Can(permission));
 }