Hot answers tagged

7 votes

ACL and control access to download documents based user-group permissions

DocMan will do this. http://www.joomlatools.com/extensions/docman/overview Configure your user groups with this inheritance: Public Friends and Family (inherits the PUBLIC settings but has more ...
user avatar
  • 168
7 votes
Accepted

Restrict front-end component access

First place to start is with Joomla, if Joomla does it then you can read the code to see how it's been implemented. The current ACL model was introduced way back in the start of the 2.5 line (aka 1.6) ...
user avatar
  • 1,749
6 votes

Get access level for a URL

I don't think there is info about the access on the URL level, nor there is a "global - thing" that controls the access of any url/page, so you can fetch this info in a list. Some brief background ...
user avatar
  • 19.5k
6 votes

Restrict user access to specific com_content category

There are 2 possible ways, I answer both ways each in separated answer. This answer creates a complete new user group. You have to create a new user group, set this user group as child of the “Public” ...
user avatar
6 votes
Accepted

Restrict user access to specific com_content category

There are 2 possible ways, I answer both ways each in separated answer. This answer uses the exclude category variant. You have to create a new user group, set this user group as child of the “Manager”...
user avatar
6 votes
Accepted

How can I grant a non-Super User group permission to force check-in of articles?

Assuming you have the latest Joomla version, if you are using the default usergroups available in Joomla, then the administrators usergroup should have access to the "Check-In" component. The ...
user avatar
  • 19.5k
4 votes
Accepted

How can I use PHP to add ACL Rules of a custom Usergroup to a core Component?

Pending a more elegant solution, here's my somewhat neanderthal approach that works: // Get the Asset record for com_content // I'm not assuming that the row id will be the same in every Joomla ...
user avatar
  • 7,665
4 votes

Remove elements from Joomla control panel admin menu

I'm not sure which elements exactly you want to remove for your client, however what you can do is change his user group from Super Admin to Admin which will remove a lot of the default options such ...
user avatar
  • 26.4k
4 votes

Permission for edit articles and users

Yes, Go to Users -> Groups Click New button and create a custom group Go to Content -> Article Manager Click on Options button on toolbar Click on Permissions tab Click on your custom user group (...
user avatar
  • 2,971
4 votes
Accepted

How to check if the user is authorized to view a particular article?

You can see an exemple of this check in this file modules/mod_articles_latest/helper.php https://github.com/joomlagovbr/joomla-3.x/blob/master/modules/mod_articles_latest/helper.php $...
user avatar
4 votes

Access Levels Explanation Joomla 3

There are a few parts to this. The group and the viewing access level. A person is part of a group. E.g Administrator. A group is assigned a viewing access level. A group can have multiple viewing ...
user avatar
  • 1,819
4 votes
Accepted

Hide a button depending on ACL

A simple way is to check if the user has an id - if so it means the user is logged in. If id = 0 then it's a guest user and you can show the button as below: $user = JFactory::getUser(); if($user-&...
user avatar
  • 19.5k
3 votes

How can I use PHP to add ACL Rules of a custom Usergroup to a core Component?

Sorry, but I have no option then to post another answer. If I understand you correctly, you do install your own component, and want to add another option to com_content. So can't you just use <...
user avatar
  • 419
3 votes
Accepted

Where is the right place to check for ACL / Session expired / permissions?

Session and ACL are two separate concepts, even though they are coupled, so it good to understand the distinction between them. I also assimilate the term permissions with ACL. Session Since you are ...
user avatar
3 votes

ACL and control access to download documents based user-group permissions

I tend to use Docman for this sort of thing, but you could still use the built in ACL to control regular articles and then embed document urls in the articles. If you've got a lot of documents though, ...
user avatar
  • 2,366
3 votes
Accepted

JCE not appearing for custom front-end user-groups

Guys after messing around with the ACL in all other places, and checking for any kind of possible other issues for some hours, finally I managed to sort this out. The issue was caused by the ACL ...
user avatar
  • 19.5k
3 votes
Accepted

Can the Access List of a Front-End menu item be limited to certain User Groups?

Not in a standard sense, i.e. the normal UI provided by Joomla. (Presuming you're talking about when an actual menu item is created here?) Extensions don't get a chance to run code when a menu item is ...
user avatar
  • 1,749
3 votes

How to set up my custom Joomla ACL structure?

ACL is an intermediate topic (at least) and if someone needs to create a more complicated ACL configuration, needs to have a solid base of relevant knowledge and past experience. Experience can be ...
user avatar
  • 19.5k
3 votes
Accepted

Secure site for members

Create a login module and set the viewing access level to 'guests'. Link here docs.joomla.org/J3.x:Access_Control_List_Tutorial
user avatar
  • 3,491
3 votes
Accepted

Getting a blank page after logging into administration on non-SU account

Obviously it is something wrong with your ACL. Usually it's hard to give a reply with the actual solution in such questions with the first try, as ACL needs a hands-on investigation, or otherwise ...
user avatar
  • 19.5k
3 votes
Accepted

Advanced Module Manager Permissions Issue: "Error - You are not authorized to view this resource"

I tested to see how Advanced Module Manager works on a clean Joomla installation and I couldn't replicate the issue. After messing around a bit more, I discovered that my issue was connected with the ...
user avatar
  • 19.5k
2 votes
Accepted

How to correctly save and understand ACL rules when creating categories from PHP

The rules column in the assets table define the custom rules for each item individually. The default value of the field would be: {"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[...
user avatar
  • 19.5k
2 votes

Restrict front-end component access

@Craig answer is very good, but JERROR will deprecate in Joomla 4.0. You can use the code below instead, when wou want to notify the UI. \Joomla\CMS\Factory::getApplication()->enqueueMessage($msg, ...
user avatar
2 votes
Accepted

Logged in user details, profile, message notification display using access level category

You should have a read through the docs there are lots of useful tips there, maybe the following is what you need? To get this object for the current user, use the following member function of ...
user avatar
  • 3,491
2 votes

Menu Module not appearing/working with ACL

If you haven't mess with anything deeper and assuming it is a casual joomla installation with your ACL additions, then it is definitely something you have not done right or ignoring in setting up your ...
user avatar
  • 19.5k
2 votes

Making Virtuemart product detail page accessible to public user

I haven't built a VirtueMart site in a while but, the short answer is to make VirtueMart available to "public" and require registration before anything can be purchased. Again, working from memory, ...
user avatar
2 votes

How to set ACL for K2 items Categories in backend

To my knowledge, K2 v2.x does not support permissions for categories. Also, I don't think ACL Manager will be much of help here. For full ACL implementation of the Joomla core into K2, you should wait ...
user avatar
  • 19.5k
2 votes

Remove elements from Joomla control panel admin menu

First of all, avoid giving Super User access to users that you can't trust. Super User has the higher privileges and can do anything on the site. See if by making the user a simple Administrator will ...
user avatar
  • 19.5k
2 votes

define custom permissions in J3.5.x

The underscores in permission names is indeed the problem. Fortunately, others have run into this issue and there is a patch already submitted that should be included in 3.5.2. Details here: https://...
user avatar
2 votes

Access Levels Explanation Joomla 3

please visit Access Control List Tutorial for access level explanations with examples. https://docs.joomla.org/J3.x:Access_Control_List_Tutorial
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible