I'm not setup as a developer right now and anyway don't know enough to know which branch is which... Perhaps someone else can get onto this? Simple fix. Obvious error.
tikilib.php, 1.9 CVS HEAD line 3528, revision 1.656
if ($is_categorized && !empty($categperm) && $$categperm != 'y') {
return (FALSE);
}
should be
if ($is_categorized && !empty($$categperm) && $$categperm != 'y') {
return (FALSE);
}
---------
In which case? Did your really have a case - or is it only a code reading.
Because so far I know there is no call to this functiopn with categperm= ''?
!empty( $ $categperm) will also be never empty ( all cats are y or n)
PS: I would like also to replace this call in most a the case with get_perm_object - because 1) usually you need all the perms around this object (for the buttons...) 2)the perm on the categ is better integrated - it is easy to connect perm on categ with perm on object
sylvie
---------
koth: to recreate the case, create a new category (without setting any perms). You then put a wiki page in that category. After that, turn off tiki_p_view_categories for anonymous group, if not already done. Try to access that wiki page that you created earlier as anonymous. You will not be able to access it.
------
koth: After discussion with sylvie, this is expected behaviour. The !empty($categperm) does not seem necessary but anyway, the implementation will be different in 1.10. Left as it is.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |