Loading...
 
Skip to main content

User can set permissions of file gallery when tiki_p_assign_perm_file_gallery is OFF

Status
Open
Subject
User can set permissions of file gallery when tiki_p_assign_perm_file_gallery is OFF
Version
12.x
Category
  • Error
Feature
Permission
Resolution status
New
Submitted by
hrsms
Lastmod by
hrsms
Rating
(0)
Description

Global permissions:

tiki_p_assign_perm_file_gallery
tiki_p_admin_file_galleries
all groups = OFF

Created users "A" and "B"
Created group "GroupA" of which "A" is a member
Created group "GroupB" of which "B" is a member

Created category "UserACat"
Permissions for category "UserACat":

tiki_p_add_object
GroupA = ON
GroupB = OFF
tiki_p_remove_object
GroupA = ON
GroupB = OFF
tiki_p_modify_object_categories
GroupA = ON
GroupB = OFF

With these settings, "A cannot set the category of the gallery because that is done by selecting the "Edit Gallery" button, which is not activated. To activate this:

tiki_p_admin_file_galleries
GroupA = ON
GroupB = OFF

Now the "Edit Gallery" is activated, but so is the "Permissions" button, despite the fact that tiki_p_assign_perm_file_gallery is OFF

Update:
In the tiki show instance, when the user clicks the Permission button, it says the user does not have permission to set permissions. I do not get this message in my actual tiki installation - the user can set permissions. I'll investigate further. However, if they don't have permission, I think the button should not be there.

Update:
Attempted workaround by setting "GroupACat" for the "Default category assigned to uncategorized objects edited by a user with this default group" option for "GroupA".

I presumed that every forum post, every file uploaded, every "everything else" would be categorized. That seems excessive, and would create a lot of garbage in the database. I do what this for new file galleries created by user "A". However, when the user creates a new file gallery, it is not assigned "UserACat". So this approach will not work.

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5813
Created
Wednesday 10 February, 2016 03:48:27 UTC
by hrsms
LastModif
Wednesday 10 February, 2016 04:55:14 UTC


Show PHP error messages