public function checkViewDataPerms($fld)
    {
        if ($fld && isset($fld->FldOpts) && intVal($fld->FldOpts) > 0) {
            if ($fld->FldOpts%7 > 0 && $fld->FldOpts%11 > 0 && $fld->FldOpts%13 > 0) {
                return true;
            }
            if (in_array($GLOBALS["SL"]->x["pageView"], ['full', 'full-pdf', 'full-xml'])) {
                return true;
            }
            if ($fld->FldOpts%13 == 0 || $fld->FldOpts%11 == 0) {
                return false;
            }
            return true;
        }
        return false;
    }