Loading...
 
Skip to main content

Custom Share Module 0.1dev

Features / Usability

Features / Usability


Restrict or log printing

posts: 5 Romania

Hello everyone,

Is there any way to prevent certain user groups from printing Wiki pages (I'm actually interested in stopping them from saving to .pdf)? As far as I can see, if a user has view permission for a page, he or she can print it (and therefore save it to .pdf)...

Or at least can the print action be logged? I can't find that in Action Log feature settings either...

I'm using the latest 24.x version, but I could easily upgrade if needed.

Thank you.

posts: 126890 United Kingdom

If you remove the permission tiki_p_print from Anonymous and Registered groups, and then assign it only to the groups you want to be able to print or export PDFs (which uses tiki-print.php) then that should work, but you can't really stop people from selecting File -> Print on the browsers menus and printing what they can see, as far as i know.

Not tried it myself but tiki_p_print should work.


posts: 126890 United Kingdom

If you remove the permission tiki_p_print from Anonymous and Registered groups, and then assign it only to the groups you want to be able to print or export PDFs (which uses tiki-print.php) then that should work, but you can't really stop people from selecting File -> Print on the browsers menus and printing what they can see, as far as i know.

Not tried it myself but tiki_p_print should work.

posts: 5 Romania
The problem is, I can't find any tiki_p_print permission (I'm currently using Tiki 24.6)...
posts: 126890 United Kingdom

Coo, you're right, sorry - i was checking in the current code (soon to be 27.x), looks like it only arrived recently.

It's not even in Tiki 26, and looks like a fairly big change so not that easy to copy it into 24.x but i guess could be done for the next 26 release at least, if enough people need it - i can't think of another way to do it properly currently - you could hide the print/export links with css or javascript, and then add a custom module with the buttons in but only showing to the groups you want, but that would be fairly simple to bypass...


Upcoming Events

1)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4) 
Tiki birthday
5)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting