Cant update users post as an admin
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18498
Printed Date: 11 April 2026 at 10:09am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Cant update users post as an admin
Posted By: voip-dude
Subject: Cant update users post as an admin
Date 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.
------------- Tom
http://blog.tmcnet.com/blog/tom-keating - VoIP & Gadget Blog
http://voip-forum.tmcnet.com/voip-forum/forum - VoIP Forum
VoI
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 24 February 2006 at 9:10am
Upgrade to the latest version 7.97, and also check your permissions in the admin section.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: voip-dude
Date 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.
------------- Tom
http://blog.tmcnet.com/blog/tom-keating - VoIP & Gadget Blog
http://voip-forum.tmcnet.com/voip-forum/forum - VoIP Forum
VoI
|
Posted By: WebWiz-Bruce
Date 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
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: voip-dude
Date 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.
------------- Tom
http://blog.tmcnet.com/blog/tom-keating - VoIP & Gadget Blog
http://voip-forum.tmcnet.com/voip-forum/forum - VoIP Forum
VoI
|
Posted By: WebWiz-Bruce
Date 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
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: bikegirl
Date 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
------------- www.bikegirl.co.uk - www.bikegirl.co.uk
|
Posted By: WebWiz-Bruce
Date 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.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
|