private function doResetAdminRights(User $user)
    {
        $acl = $this->ACLProvider->get($user);
        $databoxes = $this->appbox->get_databoxes();

        $acl->give_access_to_sbas(array_map(function (\databox $databox) {
            return $databox->get_sbas_id();
        }, $databoxes));

        foreach ($databoxes as $databox) {
            $this->doResetAdminRightsOnDatabox($acl, $databox);
        }
    }
private function doResetAdminRights(User $user)
    {
        $acl = $this->ACLProvider->get($user);
        $databoxes = $this->appbox->get_databoxes();

        $acl->give_access_to_sbas(array_map(function (\databox $databox) {
            return $databox->get_sbas_id();
        }, $databoxes));

        foreach ($databoxes as $databox) {
            $this->doResetAdminRightsOnDatabox($acl, $databox);
        }
    }
private function doResetAdminRights ( User $ user ) { $ acl = $ this -> ACLProvider -> get ( $ user ) ; $ databoxes = $ this -> appbox -> get_databoxes ( ) ; $ acl -> give_access_to_sbas ( array_map ( function ( \ databox $ databox ) { return $ databox -> get_sbas_id ( ) ; } , $ databoxes ) ) ; foreach ( $ databoxes as $ databox ) { $ this -> doResetAdminRightsOnDatabox ( $ acl , $ databox ) ; } }
Resets rights for a user.

@param User $user
Resets rights for a user .