02-05-2016, 12:17 PM
Hello
I am trying to only allow admin user to create new user accounts. I took a copy of register.php, and removed the line if logged in die. However when you create an account it doesn't work. No error, just fails. I have been looking through the User.php class as I guess the problem is in the userCakeAddUser() function or User class somewhere, but I can see where it might be.
I am a PHP novice, learning as I go!
Any suggestions appreciated!
Andy
I am trying to only allow admin user to create new user accounts. I took a copy of register.php, and removed the line if logged in die. However when you create an account it doesn't work. No error, just fails. I have been looking through the User.php class as I guess the problem is in the userCakeAddUser() function or User class somewhere, but I can see where it might be.
I am a PHP novice, learning as I go!
Any suggestions appreciated!
Andy