Esempio n. 1
0
 public bool HasPermission(Permission permission)
 {
     return _permissions.Contains(permission);
 }
Esempio n. 2
0
 public void RemovePermission(Permission permission)
 {
     if (HasPermission(permission))
     {
         _permissions.Remove(permission);
     }
 }
Esempio n. 3
0
 public void AddPermission(Permission permission)
 {
     _permissions.Add(permission);
 }