R
ragtek
Guest
Is there a way to access "all permissions" for pages?
I've created a page and set ALL permissions (can view, forum perms ,forum mod perms,gallery perms, article perms,...)
If i try to access the perms via
BUT the only perm i can access here is the "view permission"
Is this because of the nodetype permission_group_id ?
Can I manipulate this?
I've finished my xenforo page comment system, but i'm not able to set the permissions, because i can access only the view permission
I've created a page and set ALL permissions (can view, forum perms ,forum mod perms,gallery perms, article perms,...)
If i try to access the perms via
PHP:
public function canEditComment(array $comment,&$errorPhraseKey = '', array $nodePermissions = null, array $viewingUser = null)
{
$this->standardizeViewingUserReferenceForNode($comment['node_id'], $viewingUser, $nodePermissions);
if (!$viewingUser['user_id'])
{
return false;
}
if (XenForo_Permission::hasContentPermission($nodePermissions, 'editAnyPost'))
{
return true;
}
if ($comment['user_id'] == $viewingUser['user_id'] && XenForo_Permission::hasContentPermission($nodePermissions, 'editOwnPost'))
{
BUT the only perm i can access here is the "view permission"
Is this because of the nodetype permission_group_id ?
Can I manipulate this?
I've finished my xenforo page comment system, but i'm not able to set the permissions, because i can access only the view permission