Questions tagged [acl]

Questions about using the access control list (ACL) to manage admin user roles and permissions

Filter by
Sorted by
Tagged with
1
vote
0answers
33 views

Magento 2 ACL is not working on custom controller

I have tried to use ACL on custom admin controller but it is not working. My etc/acl.xml file is this: <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
5
votes
3answers
2k views

Magento 2.1.0 Roles Resource Tree not showing

in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty. Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php ...
2
votes
0answers
43 views

Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login

I anonymously added some ACL permissions in Magento 2 and saved. I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
0
votes
0answers
13 views

Problem with menu and permission for module

Why my module is not displayed in system->permissions->roles example adminhtml.xml one of the modules (module purchasemanagement) I need them to appear in permission too Maybe I didn’t do ...
0
votes
1answer
26 views

Assigning user role in custom module redirect to no route

In my custom module i have created ACl <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl....
1
vote
3answers
754 views

Could not create an acl object: Invalid XML in file

Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error Error Message I am getting 1 exception(s): Exception #0 (LogicException): Could not create an acl ...
3
votes
0answers
20 views

Hide admin sub menus menus via acl

I am looking to disable menus for certain users present within Stores->Configuration->sales->Checkout Totals Sort Order . I have added their values in acl.xml But it does not work. How to disable or ...
0
votes
1answer
32 views

Magento 2.1 adminhtml Action 'Edit' give 404 while Index works

Update: Here is what the Developer Toolbar gives me on the 404 page: Mode: Developer Controler Module: Magento_Backend Controler Class: Magento\Backend\Controller\Adminhtml\Noroute\Index ...
0
votes
1answer
32 views

Magento2: In which table Resource Access dropdown (tree-resources-container) is saved?

public function getRules() { $resoId = 'Mageants_AdvancedPermissions::catalog_attributes'; $permission = 'allow'; $rid = $this->_adminSession->getUser()->getRole()->getData('...
3
votes
1answer
2k views

What /etc/acl.xml file is used for in Magento 2.0.X

I see that most(if not all) of the Magento core modules have a acl.xml file placed in magento-module/etc/ I could not find any documentation on this, so basically I want to know, what is this ...
0
votes
2answers
31 views

Error on running cron in Magento 2

If i run the cron command php bin/magento cron:run im receiving the below error. [Magento\Framework\Exception\LocalizedException]...
2
votes
0answers
32 views

magento2 custom product attribute acl permission how to? [closed]

protected function _isAllowed() { return $this->_authorization->isAllowed('Mageants_AdvancedPermissions::catalog_attributes_attributes'); }
-2
votes
1answer
456 views

Magento 2: Override ACL using custom module

I have updated the parent of a menu item which is coming from a third party extension. I have updated the menu item by my custom module's menu.xml file. For instance, the menu was coming under ...
3
votes
3answers
2k views

Magento 2: Checking an Admin User's Access Level

In Magento 2, you can create access control rules for admin users at System -> User Roles As a backend Magento programmer, how can you check which rules the currently logged in admin user has ...
2
votes
2answers
52 views

Cusotm module edit action redirects it to the dashborard

I created Grid using UI Components and provide Edit action using < actionsColumn > in vendormodulename_entity_list.xml <actionsColumn name="actions" class="Vendor\Modulename\Ui\Component\...
4
votes
1answer
381 views

Could not create an acl object: Invalid XML

I'm a newbie learning and got this message when installing a theme and trying to access to admin, would someone mind giving me a hand? I got this error: 1 exception(s): Exception #0 (LogicException)...
4
votes
3answers
2k views

Magento 2 admin user role not displaying anything

I have created a custom module, everything is working fine, but when i take the admin user roles it is displaying nothing. My acl.xml file <?xml version="1.0"?> <config xmlns:xsi="http://...
0
votes
2answers
1k views

On log in to Magento 2.1 admin I get (LogicException): Could not create an acl object

On login to Magento 2.1 admin I get following error . 1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid Document Element 'admin': This element is not ...
8
votes
2answers
968 views

ACL Role Resource Default

Let's say we add some new resources to the ACL like so: <acl> <resources> <admin> <children> <catalog> <...
1
vote
0answers
177 views

ACL Resources Access Customization and Admin form customization

I am new to magento so can somebody please help me out? I have created a new user (belonging to custom role group = vendor) who can login to admin panel and add their own products, for that i have ...
3
votes
3answers
485 views

Custom REST API endpoint - Consumer is not authorized to access %resources - Magento_Indexer::Indexer

I'm trying to expose the getLatestUpdated() method of the Indexer class through the REST API. The endpoint is getting an auth token and all that - I can use protected endpoints no problem. What ...
0
votes
1answer
23 views

System role “Magento_Braintree::get_client_token” not found - Magento 2.2.6

Below URL throws the permission issue https://host/admin/braintree/payment/getClientToken/key/c21228d08eaede792c0256b56e18c861d90c4598adae24e63f6fcc8ea8325e0d/?isAjax=true Sorry, you need ...
-2
votes
1answer
139 views

Magento 2 How can I create two different sections under the same tab item in admin menu?

I have created two different modules, now I want to create one tab in admin system configuration and show both modules configurations in different tabs. I have two different modules within same "...
0
votes
1answer
102 views

My extension links not showing on custom roles on admin

I have created a custom module. When I have created a demo user and select custom roles for that. My module not showing on the admin side. When I select all the rights it's showing but when I select ...
1
vote
1answer
260 views

Magento 2.2.3- ACL Permissions not Working for Customer module

I have created a user and provide a new created role customer which have access to customer module only . When we logged in with that particular user , we are able to see the customer list but when ...
2
votes
0answers
92 views

ACL for custom config group - section disppeared?

I'v tried to add a new section to Store -> Config -> Catalog Section -> Catalog with custom ACL settings. I changed (default) adminrole permissions from "All" to "Custom" and left only the ...
0
votes
0answers
169 views

Get store id of the current user logged in admin

How can i get store id of the current user logged in admin in magento? I want to restrict custom module data by the type of user logged in admin area. I followed below link http://www.pixelpaul.net/...
2
votes
0answers
81 views

Api acl check permission not working for guest user

Hi I have added api acl for guest user vy adding tag <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <update>1</...
4
votes
1answer
37 views

issue while adding recipie

I have created a user . I give a user role and give resources to add recipies . it is working for admin user . but it is not working for non admins . screenshots will help you understand my question. ...
5
votes
1answer
2k views

Magento 2 : User Role and Permission Issue (ACL Issue)

In my magento2, I have created one user role with custom permission in which I give permission only for "Shipping Methods" to user. When I login with this user, it also show me other custom extension ...
10
votes
2answers
206 views

Test configuration pages with AbstractBackendController: testAclNoAccess fails

I'm writing an integration test for a configuration section and encountered the following failure from the default test cases: My\Module\ConfigTest::testAclNoAccess Failed asserting that 302 is ...
2
votes
1answer
30 views

ACL doesn't work

I tried to add new checkbox into System -> Permissions -> Roles. I added this xml at the adminxml.xml, but it is doesn't work. Where is my fault ? I want to block Catalog -> Product/...
2
votes
2answers
87 views

Magento 2.1.9 - Custom Module tab not showing

I have followed different posts in order to get the solution and the tab working, but It doesn't show up. I have followed this ones: Custom admin configuration tab not showing Magento CE 2.1 ...
1
vote
1answer
1k views

How to add admin user role programatically?

I need to add user role and set that user to edit/add/view only specific products on admin page.
3
votes
1answer
248 views

Manage customer newsletter user-roles issue

Clean install of Magento ver. 1.9.2.4 I created a user and created a custom role for this user by going to the roles section. When I've selected the option of "all" in roles it works perfectly. I ...
3
votes
0answers
27 views

How to configure REST without edit the controls manually?

Hello I am developing an extension for magento that adds a new call to the REST API. This call must be accessible to everyone so by now the guest user must be configured manually to allow him use this ...
2
votes
1answer
461 views

Give custom module's access to all in Magento 1.9

I have created a custom module for backend in Magento 1.9. This module is applicable to all users and roles. <menu> <videos module="videos"> <title>Video Tutorials</...
1
vote
0answers
118 views

How to assign ACL to UI component Form in magento 2?

I need to assign acl to Ui Component Form? Anyone know about it?
2
votes
1answer
129 views

How to put ACL on customer grid's export to CSV, based on roles?

Trying to put ACL on customer Grid's export to CSV functionality based on user role. Add following fode in my module's adminhtml.xml file acl section <config> <acl> <...
1
vote
1answer
500 views

Could not create an acl object: Role '9' - how to resolve this?

Something like this happend when I'm trying to login to backend: {"0":"Could not create an acl object: Role '9' not found","1":"#0 /var/www/html/MAGENTO_HELPA/generated/code/Magento/Framework/...
5
votes
1answer
3k views

Is it necessary to override _isAllowed in your Admin controller?

The _isAllowed method is where you, as a Admin Panel programmer, should place your ACL checks. As you can see, by default, this method returns true. That means if you don’t define your own ...
1
vote
2answers
2k views

Acl problem in my custom module (Access denied)

I created a custom module and i placed the list of subscribers under catalog and configuration under system tab and i added acl for this but the tab subscribers under catalog is not accessible but the ...
1
vote
0answers
70 views

Admin User unable to access webapi

currently developing web application that utilizes magento's customer / admin tokens (magento 2). I am trying to access my custom webapi with resource assigned as "self" using an admin user with a ...
0
votes
1answer
382 views

Magento 2 ACL rule move from one db to another

I have two environment of my website using Magento 2.2.1 One is dev and another is staging. I have created ACL Roles and assign them to users. Now i want to copy these ACL Roles to staging ...
2
votes
0answers
350 views

Magento 2: Hide action button by ACL rule in XML definition (ui component)

I have added action button to the customer form (vendor/module/view/adminhtml/ui_component/customer_form.xml): <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
249 views

Magento 2, ACL fields

In Magento 2 ui_compoments were introduced to describe grids and forms. However I would like to know which class of magento converts for example the file: vendor/magento/module-customer/view/base/...
85
votes
3answers
25k views

Access Denied errors after installing SUPEE-6285

After installing the SUPEE-6285 patch on our Magento 1.7.0.2 store the system is showing an "Access Denied" error when attempting to access all custom modules for users who have selective permissions (...
1
vote
0answers
124 views

Open Magmi from Admin Dashboard plus ACL [closed]

I'm using Magento 1.9.1.0 and Magmi 0.7.18. I'm opening Magmi (with login and password) using url like this : http://example.com/my-importer/web/magmi.php How to open Magmi as a menu in the admin ...
2
votes
2answers
2k views

Magento2: Sub-menu is not appearing in admin

I'm using below code in adminhtml/menu.xml to show menu/sub-menu in admin. I'm able to see menu Lapisbard in admin but sub-menu Store Locations is not visible when I click on menu named Lapisbard. &...
3
votes
1answer
4k views

Custom module role permission. How to add acl

I need to be able to control my custom module's role permission and I can see I have to add acl in my XML. I have tried to add it in config.xml and also made an adminhtml.xml in the same location. ...