1
svenw
WF-Sections bug
  • 2003/12/5 7:51

  • svenw

  • Just popping in

  • Posts: 5

  • Since: 2003/12/4


(Note: I also posted this in WF-Sections announcement)

I think I have found a bug. We are heavily working with group permissions, but it seemed that checking permissions failed.

In the script 'article.php' at line 37 it currently read as:
if (checkAccess($article->groupid)) {
where it should read
if (checkAccess($article->$groupid)) {

By the way, this 'if'-statement could be enhanced using an 'else'-block:
else {
redirect_header( "javascript:history.go(-1)",2, _WFS_NOVIEWPERMISSION);
}
such that the user is redirected to the previous page, when access is denied.

CatzWolf, thanks for you code! Please check if this is a bug!?

Still going strong. We have some external source of HTML-content that is generated automatically. We are including it in WF-Sections. However, I could not leave the editor empty (there was check on emptiness of the editor block).

Line 121 now reads:
if (empty($HTTP_POST_VARS['maintext']) || $HTTP_POST_VARS['ishtml']) {
But should be:
if (empty($HTTP_POST_VARS['maintext']) && $HTTP_POST_VARS['ishtml']) {

Hopes this helps other people.

Login

Who's Online

473 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 473


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits