can't edit categories

More
11 years 7 months ago #29224 by LuvStry
Replied by LuvStry on topic can't edit categories
Can i reset all permission to joomla default ?


I try to reinstall Flexiaccess but problem still.



is this bug ? or wrong setting

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #29276 by ggppdk
Replied by ggppdk on topic can't edit categories
OK, this is a bug (but also a change in behavior)

i say bug because new code is supposed to allow SOME user to edit a category if
1. they can manage categories
2. they have edit-items privilege in the category.

Please edit
administrator/components/com_flexicontent/views/category/view.html.php

and at about line 108, replace :
Code:
} else if (FLEXI_ACCESS) { $rights = FAccess::checkAllCategoryAccess('com_content', 'users', $user->gmid, $row->id); $canedit_cat = ($user->gid < 25) ? in_array('edit', $rights) : 1; } else {
with:
Code:
} else if (FLEXI_ACCESS) { $rights = FAccess::checkAllItemAccess('com_content', 'users', $user->gmid, 0,$row->id); $canedit_cat = ($user->gid < 25) ? (in_array('edit', $rights) || in_array('editown', $rights)) : 1; } else {

i committed fix in r1508

Do you also want your users to edit categories that they cannot edit items in them?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.713 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline