isActionAllowed method

bool isActionAllowed(
  1. int action
)

Check if action is allowed. action Action to check, check CommunitiesEntityAction for possible values.

Implementation

bool isActionAllowed(int action) {
  return allowedActions[action] ?? false;
}