Loading...
 
Skip to main content

Custom Share Module 0.1dev

Development

Development


Wiki 2.2 Permission does not work

posts: 12

Hi Guys,..

If i create a new topic for an article and set permission for group X to it, member of group X cant see it.
If i create a new article and set permission for group X to it, it works.
If i activate the feature categories and set permission for group X to category Y, member of group X cant see wiki/article of category Y

BUG?
Can anyone help please?
steven.spyrka at mcon-mannheim.de


posts: 12

Create Category "tttt"
Set Permission "tiki_p_view_categories" for group "IT-Directors" to Category "tttt" and all sub categorys.
I have assigned Category "tttt" to 1 article and 1 wiki these entrys have no! other permissions like topic or so.
My User "steven.spyrka" is in group "IT-Directors"
the group "IT-Directors" include group wikiview/wikiedit/articleview/articleedit/registered
so that the user can read and write wiki and article
that all works to wiki and article with NO category.
If i assign the wiki and article to category "tttt" the user "steven.spyrka" can see no wiki or article.
The user can click on category "tttt" and see no wiki/article.
If i remove the permission "tiki_p_view_categories" the user can see all the entrys.

Thats it.. help please 😊


posts: 12

thx for the answer BUT the group "IT-Directors" has already the permission tiki_p_edit_categorized
tiki_p_view_categories
tiki_p_view_categorized

please help 😊


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

posts: 12

thx sylvie

i have checked out the new tikilib.php and replaced it. I have checked the right permissions again and tested.
But it still does not work.

I will check out the complete code and replace all files and test then.

Any other ideas?

thx so far 😊

posts: 12

I checked out the whole branch and replaced all files, no changes...

please see the pics of configuration

http://www.xup.in/dl,99878911/groups.jpg/
http://www.xup.in/dl,85558388/wikiedit.jpg/
http://www.xup.in/dl,22760916/wikiview.jpg/
http://www.xup.in/dl,16694806/itdirectors.jpg/

http://www.xup.in/dl,78292368/categories.jpg/
http://www.xup.in/dl,13491668/categoriesperm.jpg/

http://www.xup.in/dl,68676729/user.jpg/
http://www.xup.in/dl,54021020/steven.spyrka.jpg/


thanks so far for help!

posts: 12

In screen 2 are just 2 entrys possible tiki_p_view_categories and tiki_p_admin_categories

there does not exist tiki_p_view_caetgorized but in screen 4 you can see tiki_p_view_caetgorized and it is assigned 😊

so what now ? :/

posts: 12
thx for completing your post but that code definitly does not solve the problem 😑


posts: 12

In screen 2 does only exist 2 entrys tiki_p_view_categories and tiki_p_admin_categories

but in screen 4 there is an entry tiki_p_view_categorized and it is already assigned to it-directors... 😊

so what now :/