-
Notifications
You must be signed in to change notification settings - Fork 57
admin panel is never shown #17
Comments
Do you have admin routing enabled? Edit: seems as the Session doesnt have the correct value for "Forum.isAdmin" |
The verifyAdmin() method either redirects to the last page you were on, or the login page. Seems like something else is going on? https://github.com/milesj/cake-forum/blob/master/controllers/components/toolbar.php#L278 Can you debug the session and make sure Forum.isAdmin is true? |
Is this still relevant? |
Going to close this. If the problem persists, I would debug around a bit as no one else can reproduce this. |
Had the same issue as 100marks (EasyPHP 5.3.9) on Forum v3.2.0 RC3 The issue was here: https://github.com/milesj/cake-forum/blob/master/Controller/Component/ForumToolbarComponent.php#L76 The following change fixed my issue (!==, not !=) Hope this helps anybody else with this rare problem. |
!== seems like it would cause more problems, simply because '1' would not equal 1. |
I agree, I should probably specify this is a localhost change for me only, I expect != will work on production and it's likely an issue with my EasyPHP 5.3.9 Despite $this->config['userMap']['status'] being '1' and $this->config['statusMap']['banned'] being '2', the above condition would not pass because it believed they were both equal, that is why !== seemed to work oddly. For now I have made a hack to check if it's localhost then use !== otherwise use != (dirty hack :|), unless you have any other ideas Miles? PS kudos on an awesome plugin. |
I'll look into it a bit further, quite an unusual scenario. |
I switched the logic around, can you try this? https://github.com/milesj/cake-forum/commit/a2bd68eca960baf39e78988ef879957eeb801815 |
Is this still an issue? |
I have integrated this plugin with my existing cakephp 1.3 application,
there's only single user with user_id and /forum/users/profile/2 shows it as administrator but when I do /admin/forum it gets redirected to my main application
I followed all the installation steps correctly
I am using WAMP server version 2.2
earlier login issues got fixed with 2.3 version of the forum
The text was updated successfully, but these errors were encountered: