AndyB
Well-known member
I would like to extract the viewDeleted value from this $permissions array:
PHP:
array(6) {
["profilePost"]=>
array(14) {
["deleteAny"]=>
bool(true)
["hardDeleteAny"]=>
bool(true)
["undelete"]=>
bool(true)
["editAny"]=>
bool(true)
["approveUnapprove"]=>
bool(true)
["viewModerated"]=>
bool(true)
["viewDeleted"]=>
bool(true)
["view"]=>
bool(false)
["like"]=>
bool(false)
["manageOwn"]=>
bool(false)
["post"]=>
bool(false)
["deleteOwn"]=>
bool(false)
["editOwn"]=>
bool(false)
["warn"]=>
bool(true)
}
["avatar"]=>
array(2) {
["maxFileSize"]=>
int(-1)
["allowed"]=>
bool(true)
}
["general"]=>
array(17) {
["editSignature"]=>
bool(true)
["view"]=>
bool(true)
["viewNode"]=>
bool(true)
["viewIps"]=>
bool(true)
["bypassUserPrivacy"]=>
bool(true)
["viewProfile"]=>
bool(true)
["search"]=>
bool(true)
["cleanSpam"]=>
bool(true)
["maxTaggedUsers"]=>
int(0)
["viewWarning"]=>
bool(true)
["warn"]=>
bool(true)
["manageWarning"]=>
bool(true)
["editProfile"]=>
bool(true)
["editCustomTitle"]=>
bool(true)
["followModerationRules"]=>
bool(true)
["bypassFloodCheck"]=>
bool(false)
["report"]=>
bool(false)
}
["forum"]=>
array(26) {
["stickUnstickThread"]=>
bool(true)
["manageAnyThread"]=>
bool(true)
["viewOthers"]=>
bool(true)
["viewContent"]=>
bool(true)
["like"]=>
bool(true)
["postThread"]=>
bool(true)
["postReply"]=>
bool(true)
["deleteOwnThread"]=>
bool(true)
["deleteOwnPost"]=>
bool(true)
["editOwnPost"]=>
bool(true)
["editOwnPostTimeLimit"]=>
int(-1)
["editOwnThreadTitle"]=>
bool(true)
["viewAttachment"]=>
bool(true)
["uploadAttachment"]=>
bool(true)
["votePoll"]=>
bool(true)
["approveUnapprove"]=>
bool(true)
["viewModerated"]=>
bool(true)
["lockUnlockThread"]=>
bool(true)
["viewDeleted"]=>
bool(true)
["hardDeleteAnyPost"]=>
bool(true)
["editAnyPost"]=>
bool(true)
["hardDeleteAnyThread"]=>
bool(true)
["deleteAnyThread"]=>
bool(true)
["deleteAnyPost"]=>
bool(true)
["undelete"]=>
bool(true)
["warn"]=>
bool(true)
}
["conversation"]=>
array(7) {
["start"]=>
bool(true)
["editAnyPost"]=>
bool(true)
["alwaysInvite"]=>
bool(true)
["uploadAttachment"]=>
bool(true)
["editOwnPost"]=>
bool(true)
["editOwnPostTimeLimit"]=>
int(1440)
["maxRecipients"]=>
int(15)
}
["signature"]=>
array(14) {
["basicText"]=>
bool(true)
["extendedText"]=>
bool(true)
["align"]=>
bool(true)
["list"]=>
bool(true)
["image"]=>
bool(true)
["link"]=>
bool(true)
["media"]=>
bool(true)
["block"]=>
bool(true)
["maxPrintable"]=>
int(-1)
["maxLinks"]=>
int(-1)
["maxLines"]=>
int(-1)
["maxImages"]=>
int(-1)
["maxSmilies"]=>
int(-1)
["maxTextSize"]=>
int(-1)
}
}