ACL on one category

More
12 years 1 month ago #43153 by jrodgar
Replied by jrodgar on topic ACL on one category
Not working on r1813 + joomla 3.2 > _ <

Let me know what info would you need for troubleshooting, but it´s basically the same as before: If I give create permissions to the group, it allow me to create permissions for all categories. If I give create permissions for only one that category, I can´t create anything.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 1 month ago #43176 by ggppdk
Replied by ggppdk on topic ACL on one category
Hello

this was added in r1809

did you use SOFT deny as discussed in our previous messages


-- 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 review. Thanks!

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

More
12 years 1 month 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
12 years 1 month 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
12 years 1 month 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 review. Thanks!

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

More
12 years 1 month 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
12 years 1 month 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 review. Thanks!

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

More
12 years 1 month 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.

More
12 years 1 month ago #43398 by ggppdk
Replied by ggppdk on topic ACL on one category
Hello

complete the fix in r1823+ (it is beta !!)

you may install and test it,


-- 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 review. Thanks!

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

More
12 years 1 month ago #43414 by jrodgar
Replied by jrodgar on topic ACL on one category
Simple test done. Looks ok. Only thing I miss is that I don´t have the "Add item" button on the dashboard.

I´ll let you know if I have more problems.

And thanks for your help!

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