protected function processCabinSubmenu(string $cabin, array $post) : bool
{
if (!empty($post['create_context']) && !empty($post['new_context'])) {
return $this->perms->createContext($cabin, $post['new_context']);
} elseif (!empty($post['create_action']) && !empty($post['new_action'])) {
return $this->perms->createAction($cabin, $post['new_action']);
}
return false;
}