public bool OverridePermission(Permission permission) { if(HasPermission(permission.GetNode())){ consolepermissions[permission.GetNode()] = permission; return true; } return false; }
public bool AddPermission(Permission permission) { if(HasPermission(permission.GetNode())){ return false; } consolepermissions.Add(permission.GetNode(), permission); return true; }
public static bool OverridePermission(Permission permission) { if(PermissionExists(permission)){ globalpermissions[permission.GetNode()] = permission; return true; } return false; }
public bool RemovePermission(Permission permission) { if(HasPermission(permission.GetNode())){ consolepermissions.Remove(permission.GetNode()); return true; } return false; }
public static bool PermissionExists(Permission permission) { return globalpermissions.ContainsKey(permission.GetNode()); }
public static bool UnregisterPermission(Permission permission) { if(PermissionExists(permission)){ globalpermissions.Remove(permission.GetNode()); return true; } return false; }
public static bool RegisterPermission(Permission permission) { if(PermissionExists(permission)){ return false; } globalpermissions.Add(permission.GetNode(), permission); return true; }