Пример #1
0
 public bool HasPermission(Permission permission)
 {
     return _permissions.Contains(permission);
 }
Пример #2
0
 public void RemovePermission(Permission permission)
 {
     if (HasPermission(permission))
     {
         _permissions.Remove(permission);
     }
 }
Пример #3
0
 public void AddPermission(Permission permission)
 {
     _permissions.Add(permission);
 }