| Author |
Topic Search Topic Options
|
voip-dude
Newbie
Joined: 02 August 2004
Location: United States
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
Topic: Cant update users post as an admin Posted: 23 February 2006 at 4:43pm |
|
I'm trying to edit a user's post and I get this error: Sorry, only members with sufficient permission can access this page.
I'm an admin, so I should be able to change it, no?
I can change my own posts, but not any of my users.
I'm running v7.9.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2006 at 9:10am |
|
Upgrade to the latest version 7.97, and also check your permissions in the admin section.
|
|
|
 |
voip-dude
Newbie
Joined: 02 August 2004
Location: United States
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2006 at 2:48pm |
|
Ok, I'll upgrade to 7.97. Though since I have several lines of modified code might take me awhile to integrate 7.97.
Curious - do you recall if v7.9 didn't allow admins to edit user's posts? This should work, right?
I am an admin, I can even access the admin page. Within the admin pages the only related thing I see is a drop-down box that says "Edit Posts" and I have it currently set to Registered Users. I even tried setting it to Forum Admins Only but that didn't work either.
I don't see any other specific checkbox or drop-down box that specifically says only allow users to edit their own posts. Thus, I assume WebWiz by default since version 1.0 allows Admins to edit user's posts?
Unless there is a specific permission I haven't used before.
Can you tell me where in the code it does the security check to see if you are allowed to edit a post? i.e. which file and approximate line number? Maybe I can troubleshoot. Maybe it's the code I added myself, such as the 24 hour delay before posting as a new user.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2006 at 2:57pm |
|
You can also set permissions on a Group basis from the admin area.
Line 377 of the file edit_posts.asp should have it hard coded that the admin account (blnAdmin) can always edit users posts
|
|
|
 |
voip-dude
Newbie
Joined: 02 August 2004
Location: United States
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2006 at 3:35pm |
|
Hmm, that's about where I was troubleshooting. These are the lines in question, right? _____________ If (((lngLoggedInUserID = lngPostUserID OR blnAdmin OR blnModerator) AND (blnEdit) AND (strMode="edit" OR
strMode="editTopic")) OR (blnReply = True AND strMode = "quote")) AND blnActiveMember AND (blnForumLocked = False) AND
(blnTopicLocked = False) Then
'See if the users browser is RTE enabled _____________
For testing, I deleted all references to "blnAdmin" just to see if the Edit page (edit_posts.asp) would still display. I would expect it would NOT display if I now attempted to Edit a post that was not mine (I'm an admin). But it DID load the edit_posts.asp page with the WYSIWYG editor. Strange.
Maybe I'm not looking at the right lines of code?
I will say that the error message "Sorry, only members with sufficient permission can access this page." isn't the expected error message. Not sure why it's displaying the strTxtInsufficientPermison constant and the insufficient_permissions.asp Access Denied page.
I would expect to see strTxtNoPermissionToEditPost = "Sorry, you do not have permission to edit this post!" message.
Any ideas why insufficient_permissions.asp would be called? Usually that's a cookie problem or banned IP, etc. Obviously, it's none of these issues. Very odd that users can edit their own posts, including me, but admins can't edit users' posts. I would think it wouldn't work at all, not "partially".
If no more suggestions, I'll go for the upgrade in the next week or so. Thanks for all your help.
Edited by voip-dude - 24 February 2006 at 3:36pm
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2006 at 4:31pm |
|
When way to try a figure out what is wrong is to place the follwoing just above the line in question:-
Response.Write(blnAdmin)
When logded in as admin it should display 'True' in the page
|
|
|
 |
bikegirl
Newbie
Joined: 07 July 2004
Location: United Kingdom
Status: Offline
Points: 2
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 July 2006 at 11:47pm |
Hi, I've got the same problem - tried adding the Response.Write above the "if" but still the same problem - admin can't edit posts. I'm on version 7.8. Can anyone help please?
Thanks
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 July 2006 at 10:15am |
|
I would suggest upgrading to the latest version, which is currently 8.03, to see if that fixes your issue.
|
|
|
 |