Frontend FLEXIaccess permission on a component

More
11 years 9 months ago #26957 by AaronE
:D i want restrict access to This Component mosettree but For Some Reason not Works can any one Help me i need Only users The I have in this Group See this component
Attachments:

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

More
11 years 9 months ago #26960 by ggppdk
Looking at the posted picture i can see that display is correct.

-- You can only limit one ACTION for the component, the "view" ACTION

To do other limitations, you will have to
1. Create custom component rule e.g. a rule 'deleteown' for component 'com_mostree' via the FLEXIaccess interface

2. Alter the source code of the com_mostree component at appropriate places to include this code:
Code:
$user = JFactory:getUser(); $can_deleteown = ($user->gid < 25) ? FAccess::checkComponentAccess('com_mostree ', 'deleteown', 'users', $user->gmid) : 1; if ($can_deleteown) { // do something // ... }

Regards


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