Пример #1
0
 /**
  * Provides the initial Privilege(s) and admin
  * should be granted.
  *
  * @param  Agency\Cms\Authority\Contracts\AuthorableInterface $admin
  * @param  array              $Agency
  * @param  array              $artists
  * @return void
  */
 public function initial(AuthorableInterface $admin, $Agency = [], $artists = [])
 {
     // $Agency and $artists must be in the form of ['resource alias' => 'role alias']
     $Agency_sections = $this->Agency_sections->initial(array_keys($Agency));
     $this->performAuthorization($admin, $Agency, $Agency_sections);
     // $artist_sections = $this->artists_sections->initial(array_keys($artists));
     // $this->performAuthorization($admin, $artists, $artist_sections);
     return true;
 }