src/Stevemo/Cpanel/User/Repo/UserRepository.php
public function updatePermissions($id, array $permissions)
    {
        $user = $this->findById($id);
        $user->permissions = $permissions;
        $user->save();
        $this->event->fire('users.permissions.update',array($user));
        return $user;
    }
public function updatePermissions($id, array $permissions)
    {
        $user = $this->findById($id);
        $user->permissions = $permissions;
        $user->save();
        $this->event->fire('users.permissions.update',array($user));
        return $user;
    }
public function updatePermissions ( $ id , array $ permissions ) { $ user = $ this -> findById ( $ id ) ; $ user -> permissions = $ permissions ; $ user -> save ( ) ; $ this -> event -> fire ( 'users.permissions.update' , array ( $ user ) ) ; return $ user ; }
Update permissions for a given user

@author Steve Montambeault
@link   http://stevemo.ca

@param int   $id
@param array $permissions

@return \Cartalyst\Sentry\Users\UserInterface
Update permissions for a given user