feat: action belongs to role check

This commit is contained in:
Jorens Shtekels 2024-03-10 21:16:10 +02:00
parent ce9e6be7e7
commit 10c486e996

View File

@ -53,9 +53,7 @@ int validateAction(
} }
bool actionBelongsToRole(Role *role, Action *action) { bool actionBelongsToRole(Role *role, Action *action) {
// TODO: implement return std::find(role->actions.begin(), role->actions.end(), *action) != role->actions.end();
bool belongs = false;
return belongs;
} }
bool isActionAllowed(Action *action, std::vector<Event> *relevantEvents) { bool isActionAllowed(Action *action, std::vector<Event> *relevantEvents) {