fix: access can be granted again (#373)

This commit is contained in:
ThereDrD0
2024-06-21 13:44:40 +03:00
committed by GitHub
parent feea6cc0fe
commit 9c73dac5be

View File

@@ -73,11 +73,14 @@ namespace Content.Client.Access.UI
AccessLevelControlContainer.AddChild(departmentGrid); AccessLevelControlContainer.AddChild(departmentGrid);
} }
foreach (var department in _groupAccessButtons.ButtonGroups)
foreach (var (id, button) in _groupAccessButtons.ButtonsList) {
foreach (var button in department.Values)
{ {
button.OnPressed += _ => SubmitData(); button.OnPressed += _ => SubmitData();
} }
}
//WD-EDIT //WD-EDIT
if (!_entityManager.TryGetComponent<IdCardConsoleComponent>(owner.Owner, out var idConsoleComponent)) if (!_entityManager.TryGetComponent<IdCardConsoleComponent>(owner.Owner, out var idConsoleComponent))