|
[F] Logged In ACP Users [R] [C-Michael83]
|
|
03-07-2009, 11:16 PM
Post: #1
|
|||
|
|||
|
[F] Logged In ACP Users [R] [C-Michael83]
I'm not 100% sure if this is a bug, but it can be confusing at times. Say for example, a regular user tries to log into the AdminCP without the admin permissions. The user will not be logged in, however they will show as an 'Online Admin' on the dashboard.
Steps to reproduce: 1) Create user account without admin CP access. 2) Navigate to AdminCP directory and attempt to log in. 3) Log into ACP as administrator with Admin CP access. 4) Look at the 'Online Admins' area. >implying this signature won't show up because I have 1000+ posts |
|||
|
03-08-2009, 02:49 AM
Post: #2
|
|||
|
|||
RE: Logged In ACP Users This user has been denied support.
Yep i just tested it and have the same problem.
Must be a bug. Although i dont see any problems with it other than just being annoying. |
|||
|
03-08-2009, 02:36 PM
Post: #3
|
|||
|
|||
|
RE: Logged In ACP Users [R]
In the /admin/index.php file, find around line 97:
PHP Code: $user = validate_password_from_username($mybb->input['username'], $mybb->input['password']);PHP Code: if($mybb->user['uid']) PHP Code: if($mybb->user['uid'] && $mybb->usergroup['cancp'] == 1) Creativity is a drug I cannot live without.
|
|||
|
03-08-2009, 06:22 PM
Post: #4
|
|||
|
|||
|
RE: Logged In ACP Users [R]
Doesn't appear to work, I get this error:
Code: SQL Error:>implying this signature won't show up because I have 1000+ posts |
|||
|
03-08-2009, 07:39 PM
(This post was last modified: 03-08-2009 08:35 PM by dvb.)
Post: #5
|
|||
|
|||
|
RE: Logged In ACP Users [R]
EDITED:
Scoutie44, you're right, I'm sorry I'll recheck this. Thank you for your help! Creativity is a drug I cannot live without.
|
|||
|
03-08-2009, 07:54 PM
Post: #6
|
|||
|
|||
|
RE: Logged In ACP Users [R]
All I did was change that line.
>implying this signature won't show up because I have 1000+ posts |
|||
|
03-08-2009, 08:11 PM
Post: #7
|
|||
|
|||
RE: Logged In ACP Users [R]
(03-08-2009 07:39 PM)dvb Wrote: But I hadn't told you to change anything related to mysql query, you have probably changed something incorrectly, or misused the ACP. No dvb, he just applied your one fix. The issue is that $uid_in is now an empty array because of your change and MySQL doesn't allow blank IN() clauses. |
|||
|
03-15-2009, 05:51 PM
Post: #8
|
|||
|
|||
|
[F] Logged In ACP Users [R]
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated. With regards, MyBB Group |
|||
|
03-22-2009, 01:59 PM
Post: #9
|
|||
|
|||
|
RE: [F] Logged In ACP Users [R]
Revision #4330
This fix isn't working. In admin/index.php PHP Code: unset($mybb->user);PHP Code: $db->delete_query("adminsessions", "uid='".$db->escape_string($mybb->user['uid'])."'");Greets, Michael -------------
|
|||
|
03-28-2009, 08:59 PM
Post: #10
|
|||
|
|||
|
RE: [F] Logged In ACP Users [R] [C-Michael83]
Ryan, I'm assuming you haven't read my PM with the fix from March, 9 ?
(only Ryan G can access it, important parts below) find... replace with: PHP Code: if($mybb->usergroup['cancp'] != 1 || !$mybb->user['uid'])This fix seems to fix the problem but it's a bit of duplicate since we're adding a row to adminsessions and set a cookie, after that we clean them both... BTW, line 255: PHP Code: $login_message = $lang->invalid_admin_session; PHP Code: $login_message = $lang->error_invalid_admin_session; Creativity is a drug I cannot live without.
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help



This user has been denied support.
![[Image: igG319dTu71gT.png]](http://i.minus.com/igG319dTu71gT.png)
![[Image: donation_drive_sig.png]](http://mybboard.net/assets/images/donation_drive_sig.png)