<?php
$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("_44a0f7eed3d3cd" . "9c0c7c600eb1500" . "b23" => base64_decode("Q2FuJ3QgbW92ZSB0byBkZXN0aW5hdGlvbg" . "=="), "_e16406e" . "6d49d15f" . "2ad16b66" . "58ad926a" . "d" => base64_decode("ZG9jdW1lbnRzLmZvbGRlcl9pc19jb" . "G9zZWQ="), "_8e571151c" . "0c1d067c14" . "c227bf6c6a" . "704" => base64_decode("ZG9jdW1lbnRzLmVkaXRkb2MuZGVjbGFyZWRfZG9" . "jX2Vycm9y"), "_0c5123aa744f69bbc" . "0e8b3ea2f6e847d" => base64_decode("bG1z" . "Zw=="));




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["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_44a0f7eed3d3" . "cd9c0c7c600eb" . "1500b23"]);
        }
        return true;
    }
    protected function CheckLocked(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043 = null)
    {
        if ($_68ffaaa31e3ba49ed9d6159fbee9f043 instanceof ERMSLockable && $_68ffaaa31e3ba49ed9d6159fbee9f043->IsLocked()) {
            return $this->SetErrMsg($_68ffaaa31e3ba49ed9d6159fbee9f043->IsFilePlan() ? $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_0c5123aa744f69bbc" . "0e8b3ea2f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_e16406e6d49d15f2ad16b6658ad" . "926ad"]) : $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_0c5123a" . "a744f69b" . "bc0e8b3e" . "a2f6e847" . "d"]($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_8e571151c0c1d067c14c227bf6c6" . "a704"]), 409);
        }
        return true;
    }
    public function CanView(ERMSObject $_68ffaaa31e3ba49ed9d6159fbee9f043)
    {
        return true;
    }
}