1
(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.