getUser(); if (!$user instanceof User) { return false; } return $this->hasRolePermission($user, $attribute . '_activity'); } }