ACL on one category

More
10 years 11 months ago #43202 by jrodgar
Replied by jrodgar on topic ACL on one category
Indeed, I don´t use hard deny anywhere. I can try more tests if you have a working case on your sites and/or indicate me the file where this is managed to take a look.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 11 months ago #43286 by jrodgar
Replied by jrodgar on topic ACL on one category
Could you check? I think the problem could be here

models/parentclassitem.php
Code:
if ( !$user->authorise('core.create', 'com_flexicontent') ) { $iparams_extra->set('access-create', false); } // general permission is present, check that user can create item in at least one category else { $usercats = FlexicontentHelperPerm::getAllowedCats($user, array('core.create')); $iparams_extra->set('access-create', count($usercats)); }

This would mean that if I don´t have the general permission to do this, I can´t create on individual categories... but we said that I don´t need the general permission. Even more, as we said, if I have the general permission, I don´t have limitations by category, I´ll be able to create for all of them.

The other issue I see is that the button will appear based on helpers/permission
Code:
$permission->CanAdd = $user->authorise('core.create', 'com_flexicontent');

And if I understand well, this is again the general permission.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 11 months ago #43298 by ggppdk
Replied by ggppdk on topic ACL on one category
Hello,

see at about line 983:

$usercats = FlexicontentHelperPerm::getAllowedCats($user, array('core.create'));
$iparams_extra->set('access-create', count($usercats));
return $iparams_extra; // New item, so do not calculate EDIT, DELETE and VIEW access

the fix is there,

probably you have a wrong configuration

i will test this fix again


-- 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
10 years 11 months ago #43315 by jrodgar
Replied by jrodgar on topic ACL on one category
Correct me if I´m wrong, but based on my last message, this:

$permission->CanAdd = $user->authorise('core.create', 'com_flexicontent');

the button will appear based on general permission

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 11 months ago #43326 by ggppdk
Replied by ggppdk on topic ACL on one category
Hello

- i found that the NEW ITEM in backend ITEMS manager was not updated with new code

i have fixed locally,

-- do you mean bug about NEW ITEM button in backend backend ITEMS manager ?

or

do you mean frontend ?


-- 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
10 years 11 months ago #43330 by jrodgar
Replied by jrodgar on topic ACL on one category

-- do you mean bug about NEW ITEM button in backend backend ITEMS manager ?

Yes :)

Feel free to show me the fix if it´s short, so I can´t try it without waiting for the next package :)

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.474 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