Check if action is allowed. action Action to check, check CommunitiesEntityAction for possible values.
action
bool isActionAllowed(int action) { return allowedActions[action] ?? false; }