Skip to main content
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-&...
FFrewin's user avatar
  • 19.7k
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 ...
Eoin's user avatar
  • 1,976
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 ...
FFrewin's user avatar
  • 19.7k
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
jonboy's user avatar
  • 3,613
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 ...
FFrewin's user avatar
  • 19.7k
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://...
lcdservices's user avatar
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, ...
Paulo Griiettner's 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
Yamini Bangur's user avatar
2 votes
Accepted

How to define access control for menu items?

There is a tutorial on the docs page which is worth reading: https://docs.joomla.org/J3.x:Access_Control_List_Tutorial In your case, you only need to deal with access levels, you can ignore the ...
Bakual's user avatar
  • 5,582
2 votes

Joomla!3.6.x - BDD - ACL inconsistent

The permissions to create and edit in category "Informatique et SIG" for user group "fiche_pratique_DSI_agents" are set to "inherit". They should inherit from the parent category "Mon service" and ...
fruppel's user avatar
  • 3,733
2 votes
Accepted

Display an article's Access Level on the article's page

There are many ways to do this but the best possible way I can think of is developing a small content plugin. https://docs.joomla.org/J3.x:Creating_a_content_plugin You may want to implement ...
Nagarjun's user avatar
  • 3,001
2 votes
Accepted

Implementing access control to my website

Start by going to Users->Access Levels and creating Levels 1-5 as you specified. After saving those levels continue on to Users->Groups and create groups 1-5 using the parent group "Registered". Now ...
Rafe's user avatar
  • 247
2 votes
Accepted

How to define Joomla permissions programmatically?

I have been meaning to provide an update for some time. I solved this problem with two pull requests to CiviCRM a few months ago. My memory is fading, and I might have some of the Joomla terminology ...
universalhandle's user avatar
2 votes

How to define Joomla permissions programmatically?

I realise that this is a bit late but … Yes, it is possible for extensions to define their own permissions, as really the "permissions" are fundamentally just strings. However, the standard method ...
Robbie Jackson's user avatar
2 votes
Accepted

Unable to Access My Site

May I have a long shot - considering your other recent question on Access Levels Explanation Joomla 3.4 - I would guess that you probably made changes on the ACL of your site, so that's why now you ...
FFrewin's user avatar
  • 19.7k
2 votes

Unable to Access My Site

The screens in your question look quit normal. The message appears after updating (by the way you really should update to 3.5). The messages inform the joomla admin about changes in the new joomla ...
RedNails's user avatar
2 votes

Restrict unregistered users from accessing the whole joomla site

As far as question goes: There is option to disable the website in global configuration Go to permissions page of the global configuration Allow "registered" user group to "access site" when it's ...
Alexandr's user avatar
  • 1,130
2 votes
Accepted

Own Module - Integrate ACL Check (in Ajax Call)

Yes you do need to check the permissions in your Ajax-handling code. The way you would do this would be to follow the pattern in the Joomla MVC FormController, where it uses the Joomla User authorise ...
Robbie Jackson's user avatar
2 votes
Accepted

What does it mean for a user to be 'logged in' to Joomla?

The problem was that techjoomla's api package had it's own functions for ACL that were designed to work with mobile phone apps. These introduced their own logic for determining whether a user was ...
Huw Evans's user avatar
  • 371
2 votes
Accepted

Deleting user account when user has published articles

All the records in the Joomla database that have created_by or modified_by fields will have the same issue when you delete users in Joomla's User Manager. I don't think that removing users will break ...
pe7er's user avatar
  • 2,068
2 votes

Joomla 3 - How to find if logged in user is registered?

Resolved with the following code: I just needed to discover a way of grabbing either the group name or user group id. We do the latter and grab the id of the group we wish to manipulate. All user ...
suge1w's user avatar
  • 31
1 vote

Create a Joomla Access Level to manage users in a particular Group

Using the standard core functions it is not possible to to restrict the ability to manage users of a particular user group, in your example Group A. I would say that it might be possible with some ...
Irata's user avatar
  • 4,001
1 vote
Accepted

Has anyone tried setting homepage access level to registered?

I think this is caused by the way you have configured your sites. My guess is that in those sites that you are getting the too many redirects, the User Login form is loaded from the home page menu ...
FFrewin's user avatar
  • 19.7k
1 vote
Accepted

Joomla 3.8.1 - Can't add menu or view Media files

This turned out to be an issue with Apache's configuration files. The solution was to edit this file: /etc/httpd/conf.d/ssl.conf and change this line: Header always set X-Frame-Options DENY to ...
Edward_178118's user avatar
1 vote
Accepted

Custom User-Group: Giving access to users component administration

I can not reproduce this on a Joomla! 3.7.2. The steps below are what I did. Can you follow them and report back if this works for you? Created the Custom User-group, it is a child of the Public - ...
FFrewin's user avatar
  • 19.7k
1 vote

Custom Component with ACL not apearing in admin menu

It seems you mispelled the filename the correct name is access.xml without the capital A. Another thing you might want to look at is if you added the rules field in config.xml file. Lastly, if you ...
mralexandrelise's user avatar
1 vote
Accepted

Cannot query Joomla database as a guest user

Finally I managed to resolve the issue. It was my mistake when generating the query. I used $db->quoteName('something') instead of $db->quote('something') which resulted in a wrong query (I ...
Rafichu's user avatar
  • 11
1 vote

Protecting modules from deletion or editing

In recent Joomla versions (3.2 and later), modules come with a permissions tab, where you can set the following permissions per user-group: Delete Edit Edit State Front-end Editing Of course ...
FFrewin's user avatar
  • 19.7k
1 vote

K2 show items to selected users

If you want to control access to K2 articles individually, you can do that inside that article settings in the "Access Level" field. The same setting can be applied (Access Level) to K2 categories ...
Michael Yaeger's user avatar
1 vote
Accepted

Component not showing in admin top Menu only for `Editor` security group

By default the User Group Editor does not have access to the back-end of the site, check with more detail the full description for each group here: User Group Access levels explained in simple terms ...
AlejandroVega's user avatar

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