Loading...
 
Development

Development


Permission error when using a token to access a wiki page

posts: 3

"You are not logged in."

is the error displayed via the error.tpl. It happens when you go to a url such as:

https://MYTIKIINSTANCE.COM/tiki-index_p.php?page=MYPAGETITLE&TOKEN=fb34182905728a815a9642f80bff625a

The token is associate with the group "Registered" which has the permission 'tiki_p_view'. Basically, tiki finds that $tiki_p_view != 'y', though it should. If I log in as a user that belongs only to that group, the error does not appear.

Any idea what needs to be fixed to get the token access to work as it would for a user in the same group?

posts: 3
Figured it out. The issue was that I also needed to add the 'Anonymous' group to the token, in addition to 'Registered'. I'm assuming this is because the latter group inherits some core permissions, such as tiki_p_view from 'Anonymous'.

Upcoming Events

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