mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2026-02-04 06:42:02 +00:00
feat: action belongs to role check
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user