private function doResetAdminRightsOnDatabox(\ACL $acl, \databox $databox)
    {
        $collections = $databox->get_collections();

        $acl->update_rights_to_sbas(
            $databox->get_sbas_id(),
            [
                \ACL::BAS_MANAGE        => true,
                \ACL::BAS_MODIFY_STRUCT => true,
                \ACL::BAS_MODIF_TH      => true,
                \ACL::BAS_CHUPUB        => true
            ]
        );

        $acl->give_access_to_base(array_map(function (\collection $collection) {
            return $collection->get_base_id();
        }, $collections));

        foreach ($collections as $collection) {
            $this->doResetRightsOnCollection($acl, $collection);
        }
    }
private function doResetAdminRightsOnDatabox(\ACL $acl, \databox $databox)
    {
        $collections = $databox->get_collections();

        $acl->update_rights_to_sbas(
            $databox->get_sbas_id(),
            [
                \ACL::BAS_MANAGE        => true,
                \ACL::BAS_MODIFY_STRUCT => true,
                \ACL::BAS_MODIF_TH      => true,
                \ACL::BAS_CHUPUB        => true
            ]
        );

        $acl->give_access_to_base(array_map(function (\collection $collection) {
            return $collection->get_base_id();
        }, $collections));

        foreach ($collections as $collection) {
            $this->doResetRightsOnCollection($acl, $collection);
        }
    }
private function doResetAdminRightsOnDatabox ( \ ACL $ acl , \ databox $ databox ) { $ collections = $ databox -> get_collections ( ) ; $ acl -> update_rights_to_sbas ( $ databox -> get_sbas_id ( ) , [ \ ACL :: BAS_MANAGE => true , \ ACL :: BAS_MODIFY_STRUCT => true , \ ACL :: BAS_MODIF_TH => true , \ ACL :: BAS_CHUPUB => true ] ) ; $ acl -> give_access_to_base ( array_map ( function ( \ collection $ collection ) { return $ collection -> get_base_id ( ) ; } , $ collections ) ) ; foreach ( $ collections as $ collection ) { $ this -> doResetRightsOnCollection ( $ acl , $ collection ) ; } }
Resets admin rights on a databox.

@param \ACL     $acl
@param \databox $databox
Resets admin rights on a databox .