concrete/src/Block/Block.php
public function revertToAreaPermissions()
    {
        $c = $this->getBlockCollectionObject();

        $db = Loader::db();
        $v = [$c->getCollectionID(), $c->getVersionID(), $this->getBlockID()];

        $db->query('delete from BlockPermissionAssignments where cID = ? and cvID = ? and bID = ?', $v);
        $v[] = $this->getAreaHandle();
        $db->query(
            'update CollectionVersionBlocks set cbOverrideAreaPermissions = 0 where cID = ? and (cvID = ? or cbIncludeAll=1) and bID = ? and arHandle = ?',
            $v
            );
    }
public function revertToAreaPermissions()
    {
        $c = $this->getBlockCollectionObject();

        $db = Loader::db();
        $v = [$c->getCollectionID(), $c->getVersionID(), $this->getBlockID()];

        $db->query('delete from BlockPermissionAssignments where cID = ? and cvID = ? and bID = ?', $v);
        $v[] = $this->getAreaHandle();
        $db->query(
            'update CollectionVersionBlocks set cbOverrideAreaPermissions = 0 where cID = ? and (cvID = ? or cbIncludeAll=1) and bID = ? and arHandle = ?',
            $v
            );
    }
public function revertToAreaPermissions ( ) { $ c = $ this -> getBlockCollectionObject ( ) ; $ db = Loader :: db ( ) ; $ v = [ $ c -> getCollectionID ( ) , $ c -> getVersionID ( ) , $ this -> getBlockID ( ) ] ; $ db -> query ( 'delete from BlockPermissionAssignments where cID = ? and cvID = ? and bID = ?' , $ v ) ; $ v [ ] = $ this -> getAreaHandle ( ) ; $ db -> query ( 'update CollectionVersionBlocks set cbOverrideAreaPermissions = 0 where cID = ? and (cvID = ? or cbIncludeAll=1) and bID = ? and arHandle = ?' , $ v ) ; }
Revert the permission of the object to the one of the area that contains the block.
Revert the permission of the object to the one of the area that contains the block .