Loading...
 
Skip to main content

Features / Usability


Edit and Remove should be two different things?

Unless I'm missing something, I have a big problem.

For a category, I have tiki_p_edit_categorized enabled for a group. This allows them to also remove pages, which I could think should be a different restriction.

Is there any way I can break this behavior? I don't want my users deleting pages, especially when I can't find a way to get them back.

If I can see who deleted what, and get it back easily, then this isn't such a big deal.

Maybe you shouldn't use the category-type permissions, but use object (or structure) permissions instead. I don't recall them having that problem, though this should be tested, to find out for sure. Of course it's more work applying permissions object-by-object, but it seems to work better.

But this does seem like unwanted behavior, so there should probably be separate permissions for editing and removing categorized objects.

-- Gary


I did find a fix for this from the IRC channel, so far it seems to be working.

I had to edit lib/tikilib.php, and go to the following section

Image
Copy to clipboard
if ($categPerms['tiki_p_edit_categorized'] == 'y' || $categPerms['tiki_p_admin_categories'] == 'y') { $ret['tiki_p_edit'] = 'y'; $ret['tiki_p_remove'] = 'y'; $ret['tiki_p_wiki_attach_files'] = 'y';

I changed
Copy to clipboard
$ret['tiki_p_remove'] = 'y';
to
Copy to clipboard
$ret['tiki_p_remove'] = 'n';