Loading...
 
Features / Usability

Features / Usability


Calendar Permissions

posts: 5

First off, I would like say that Tiki is the greatest thing since phpMyAdmin... biggrin

Now, my question:

Is there any way way to prevent users from posting new calendar events? Even on this Tiki anonymous users can post new calendar events and delete old ones. I only want to allow editors this option. Thanks.

theSerge at theSerge.com

posts: 5

I figured it out.

It was a bug (reported by 2 ppl) in the file "templates/tiki-calendar.tpl" file. I changed several lines and voila... how should I go about letting the Tiki community know about this? Anyone know?

Serge


posts: 6 United States

It was a bug (reported by 2 ppl) in the file "templates/tiki-calendar.tpl" file. I changed several lines and voila... how should I go about letting the Tiki community know about this? Anyone know?

Well, you just let me know ... that it's a bug. One way to continue with that is to give the IDs of the bugs so that I wouldn't now have to search the bug database for myself. ;)

dreamwolf


posts: 6 United States

I changed four lines in templates/tiki-calendar.tpl on my own unsullied copy of 1.7.1.1:

156: {if $editmode and $tiki_p_add_events} => {if $editmode and $tiki_p_add_events eq 'y'}
171: same (added eq 'y')
328: same (added eq 'y')
334: same (added eq 'y')

Apparently, $tiki_p_add_events and $tiki_p_change_events were booleans at some point but are now not.

I don't know if what I did was correct, but at least anonymous users can now see but not edit the calendar.

dreamwolf


posts: 224 Ireland

Serge,

You can see if there is a Bug Report for it on SF site. If so you can attach a note with the solution and close it. You can also submit a patch in the Patch section on the SF site. Lastly, if you would like to participate actively in the development you can request CVS access so that you can apply the patch yourself.

Have a look at the TikiHowToDev for some more info.

Regards,

Pat.