<?php
$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] ?: array()) + array("_44a0f7eed3d3cd9c0c7c600eb15" . "00b23" => base64_decode("Q2FuJ3QgbW92ZSB0byBkZXN0aW" . "5hdGlvbg=="), "_e16406e6d49d15f2ad16" . "b6658ad926ad" => base64_decode("ZG9jdW1lbnRzLmZvbGRlcl9" . "pc19jbG9zZWQ="), "_0c5123aa744f69bbc0e8b" . "3ea2f6e847d" => base64_decode("bG1" . "zZw" . "=="), "_8e571151c0c1d067c14c227bf6c6a7" . "04" => base64_decode("ZG9jdW1lbnRzLmVkaXRkb2MuZGVjbGFyZWRfZG" . "9jX2Vycm9y"));




class ERMSPermsCheckerAdmin extends ERMSPermsChecker
{
    public function CanDelete(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043)
    {
        if (!$_68ffaaa31e3ba49ed9d6159fbee9f043 instanceof ERMSDataObj && !$this->CheckLocked($_68ffaaa31e3ba49ed9d6159fbee9f043)) {
            return false;
        }
        
        
        return true;
    }
    public function CanChangeDocument(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043 = null)
    {
        if (!$this->CheckLocked($_68ffaaa31e3ba49ed9d6159fbee9f043)) {
            return false;
        }
        return true;
    }
    public function CanChangeContent(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043 = null)
    {
        if (!$this->CheckLocked($_68ffaaa31e3ba49ed9d6159fbee9f043)) {
            return false;
        }
        return true;
    }
    public function CanOnlyCreateDrafts(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043 = null)
    {
        
        
        return false;
    }
    public function CanEditMetadata(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043)
    {
        if (!$this->CheckLocked($_68ffaaa31e3ba49ed9d6159fbee9f043)) {
            return false;
        }
        return true;
    }
    public function CanMove(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043, ERMSObject $_b0eff9162b2830bd7a38fc626c309d38 = null)
    {
        if (!$this->CanDelete($_68ffaaa31e3ba49ed9d6159fbee9f043)) {
            return false;
        }
        if (!$this->CanChangeContent($_b0eff9162b2830bd7a38fc626c309d38)) {
            return $this->PassError(false, $this, $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_44a0f7eed3d3cd9c0c7c600eb1" . "500b23"]);
        }
        return true;
    }
    protected function CheckLocked(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043 = null)
    {
        if ($_68ffaaa31e3ba49ed9d6159fbee9f043 instanceof ERMSLockable && $_68ffaaa31e3ba49ed9d6159fbee9f043->IsLocked()) {
            return $this->SetErrMsg($_68ffaaa31e3ba49ed9d6159fbee9f043->IsFilePlan() ? $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_0c5123aa744f69bbc0e8b3" . "ea2f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_e16406e6" . "d49d15f2a" . "d16b6658a" . "d926ad"]) : $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_0c5123aa744f69bbc0" . "e8b3ea2f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_8e571151c0c1d067c14c227b" . "f6c6a704"]), 409);
        }
        return true;
    }
    public function CanView(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043)
    {
        return true;
    }
}