OK try it again I changed the code so that $parent is not in double " and . , could you try this?
-
☆ A M B ☆
- 1,231 Posts
No error in the log either...
the redirect you made isn’t working properly either.
<?php
if($_SESSION["usertype"] == "manager") {$manager = "1";}
$wuid = "-".$modx->getLoginUserID();
$owner = $modx->documentObject[’createdby’];
if($wuid == $owner || $manager == "1"){
return;
}else{
$modx->sendRedirect($modx->makeUrl($modx->config[’site_start’]));
}
?>
It’s redirecting people as it should but it’s actually redirecting the person who created it on the signup. It only allows an admin to view with out being redirected.
I don’t know what’s happened now. It’s not working at all now! It’s not creating pages.
ok I will test this later No time atm, sorry
-
☆ A M B ☆
- 1,231 Posts
Thank you, much appreciated.
-
☆ A M B ☆
- 1,231 Posts
Any update on this? I know you’re probably busy.
If anyone else has any knowledge or help would be great.
I changed a small typo you could try the above code again?
and maybe now you get an error in the logs?
Dimmy
-
☆ A M B ☆
- 1,231 Posts
Well DImmy that worked! Parent doc created and sub folder in place. How about the redirect? I only want the person who signed up and created the parent folder to have access but as explained, only the admin is getting access. Thanks!!!
-
☆ A M B ☆
- 1,231 Posts
Just for the record you have to put text/html and not texthtml
It creates a text/css file otherwise.
-
☆ A M B ☆
- 1,231 Posts
it says 0 in the createdon field