Loading...
 
Skip to main content

Permission inheritance (default category) are not checked prior creating a wiki page

Status
Closed
Subject
Permission inheritance (default category) are not checked prior creating a wiki page
Version
10.x
11.x
12.x
Category
  • Error
Feature
Category
Permission
Wiki Structure (book & table of content)
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Pascal St-Jean, Bernard Sfez / Tiki Specialist
Rating
(0)
Description

Permission from category are not applied for tiki_p_edit (Can edit/create pages) even if group "Default category assigned to uncategorized object edited by a user with this default group" is set.
Unless GLOBAL permission for tiki_p_edit is set (which is wrong as user of this group will be now able to create and edit any page anywhere without being locked in their category:structure).

Real life case:
I have a tiki with several section (shop, store, marketing).
I create a category for each section.
For each section i also create group of user so each each group can edit is own section only.
I set 3 structures so user can also create page in his structure/category/section.

In group preference, i set each group to have "Default category assigned to uncategorized object edited by a user with this default group" with the relevant category (group_shop to category_shop, etc).

As things should work.
If a member of group_shop create a (child) page from a page in structure_shop having tiki_p_edit checked for category_shop, tiki should understand that the new page should inherit from the same category permission (category_shop) and create/edit the page.

But this is not happening. Tiki see the new page to be create has "non-categorised" yet therefor doesn't allow the creation for a usergroup with tiki_p_edit uncheck in global permissions.

Summary: When creating a new page, tiki should check user group category permission and apply them prior the page exist (applying inheritance on a create state page - not saved yet).

Workaround
With the nice demonstration i have done i deserve this being solved !!! 😂
Importance
8
Easy to solve?
8
Priority
64
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4812
Created
Tuesday 22 October, 2013 07:53:30 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Tuesday 06 February, 2018 23:13:31 UTC


Show PHP error messages