code: public function available()
      {
          return $this->core->api()->response(
              $this->makeContainer(
                  $this->core->modules()->getAllPermissions()
              )
          );
      }
docs: Returns available permissions as defined by loaded modules.
  
  @return mixed