Loading...
 
Development

Development


Re: Wiki 2.2 Permission does not work

posts: 1092

There was a bug in topic perm that is fixed in the next tiki2
The fix is

Copy to clipboard
branches/2.0/lib/tikilib.php Modified: branches/2.0/lib/tikilib.php =================================================================== --- branches/2.0/lib/tikilib.php 2008-11-17 20:00:46 UTC (rev 15660) +++ branches/2.0/lib/tikilib.php 2008-11-17 20:15:00 UTC (rev 15661) @@ -2944,7 +2944,7 @@ $ret = array(); while ($res = $result->fetchRow()) { if ($res['topicId'] != 0 && $userlib->object_has_one_permission($res['topicId'], 'topic')) {// if no topic or if topic has no special perm don't have to check for topic perm - $add=$this->user_has_perm_on_object($user,$res['topicId'],'topic','tiki_p_topic_read'); + $add1 = $this->user_has_perm_on_object($user,$res['topicId'],'topic','tiki_p_topic_read'); } else $add1 = $this->user_has_perm_on_object($user, $res['articleId'],'article', 'tiki_p_read_article') ; $add2 = $this->user_has_perm_on_object($user, $res['articleId'],'article', 'tiki_p_articles_read_heading');


sylvie
tiki-expert.com

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting