[Solved] Flexiaccess - Related Items problem

More
12 years 4 months ago - 12 years 4 months ago #33531 by victorio404
I can't grant rights/control to any flexiaccess group to modify the related items field value.
The category tree where one have to select first - is grayed out.
Only Superadmins can select categories and add related items.

Flexiaccess: 1.0.5
FC: 1.5.6 RC9b r1601

Can that be fixed pls?
Last edit: 12 years 4 months ago by victorio404.

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

More
12 years 4 months ago #33535 by ggppdk
Hello, this behavior sounds correct,

-- The edit field value is for displaying or not displaying the form element.

So edit field value hides the overall field edit capability.

-- After that the related items field still applies the Category access and item Access rules.

Are the category / item access applied correctly within the field ?


-- 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.

More
12 years 4 months ago #33540 by victorio404
I'm not quite sure what category/item access within the field i can apply, but all other fields have the same individual permissions and they are working fine.

The flexiaccess group has all Frontend permissions for Articles ON except "Grant Perms". So that goes inherited to all categories.
There is no logic same group to be able to fill all other fields(in item edit form) except "Related Items". This is a bug.

When you are a flexiaccess group user(but no superadmin) and want to add related item the "Select Category" field - the category tree is grayed out - can't select category. If there are some item previously related by Superadmin, then the flexiaccess user is able to remove them. So the field is editable apart from the category tree. I hope i make sense now what the problem is.

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

More
12 years 4 months ago #33544 by ggppdk
The "Edit field Value" permission is not related to permissions applied within the field, it hides or show the field, and works on any custom field and for CORE field "description".

so this permission is not related to the problem for sure, but i guess you are not speaking of the "edit field value" permission

-- about the category tree being disabled,
i see that current build of tree requires the user to have all permissions to the category :
add and edit and editown

so this could be the reason that they are disabled

Try this find line (in file plugin relateditems.php):
Code:
$field->html .= flexicontent_cats::buildcatselect($allowedtree, $ri_field_name.'_fccats', $catvals="", false, ' class="inputbox" '.$size, true);
and change it to
Code:
$field->html .= flexicontent_cats::buildcatselect( $allowedtree, $ri_field_name.'_fccats', $catvals="", false, ' class="inputbox" '.$size, $check_published = true, $check_perms = true, $actions_allowed=array('core.create', 'core.edit', 'core.edit.own'), $require_all=false );


-- 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.

More
12 years 4 months ago #33555 by victorio404
Thanks, the problem is solved as usual :D

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

More
12 years 4 months ago #33557 by ggppdk
thanks for feedback,
i have updated permissions usage for J2.5

Also NOTE: on next update these fields will
-- be renamed (automatically) to relation and relation reverse
-- you will be able to fully customize the frontend display of them , showing your items not only as titles but with:
-- other fields too !! e.g. image, checkbox, etc
-- can enter HTML
-- can use separator, prefix, suffix, opentag, close tags

The above is for both fields relation and relation reverse


-- 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.324 seconds
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
Save