-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user register page not authorized #689
Comments
Please paste your bootstrap.php code to load the plugin and permissions.php file. Thanks, |
Hi skywalkerx86, did you solve this issue? How? Thanks, Kai |
Sorry, I don't think I ever sorted this out. |
I had a similar issue when starting with this, the only solution I found was to extend the CakeDC classes directly. So instead of MyUserController extends AppController, I used MyUserController extends CakeDCUserController (with an appropriate use statement for the alias). |
@skywalkerx86 @niel is this still an issue in current versions? |
I have no idea, as I'm not using the current versions in anything. |
trying to access the register page throws "You are not authorized to access that location." error and redirects to login.
This happens on a fresh install as soon as I extend the users entity/table/controller and set them to be used in the users config.
Following the extending the plugin documentation, even with no model overrides on the MyUsers entity and the my_users table in my database is an exact copy of the users table
Controller/MyUsersController.php
Model/Entity/MyUser.php
Model/Table/MyUsersTable.php
namespace App\Model\Table;
users.php config chunk (copied the config file from the plugin and only changed these 2 items)
The text was updated successfully, but these errors were encountered: