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;
    }