Questions tagged [role]
The role tag has no summary.
44 questions
0 votes
1 answer
63 views
Nothing happen when I click Role Resources and Role Users
When I click Role Resources and Role Users on System - User Roles, nothing happens (no error message. I can edit data on Role Info)
0 votes
2 answers
843 views
How to change user role via command line in Magento 2?
How to change existing user role to Administrator via command line? Or it should be in sql? Or maybe programmatically? Best regards, Bartek
0 votes
1 answer
431 views
How to add custom user role in the registration form process in magento 2?
I am new to magento platform. I am using magento version 2.4.2 for my project, I want to add the select user type field in registration form. When customer registers. Is it possible to add the custom ...
0 votes
1 answer
873 views
Magento 2 disable delete product action from some admin user
Hi i have create a new user role in my magento2 admin panel . in that role i have only given access to catalog . So once that user login to admin panel they can only update product and category ...
2 votes
0 answers
46 views
How to add custom config in custom module to role user admin in magento 1
I created a module and use it in the config, but when set role user, it does not show, please help me!
0 votes
1 answer
192 views
How to upgrade resource to admin user role
I create an admin user role from setup using this code, $role=$this->_roleFactory->create(); $role->setName('test') ->setPid(0) ->setRoleType(RoleGroup::ROLE_TYPE) -&...
0 votes
1 answer
365 views
Adding new admin role programmatically don't work (Magento 2.3.1)
I try to add a new role programmatically using this code : <?php namespace ModuleNameSpace\YourModuleName\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\...
1 vote
0 answers
145 views
How to save another data for Authorization Role in Magento 2
Hi Everyone i need help with this case. How can i save with a plugin with this additional data "Extra Data" ? Reference: How can i add this "extra-data" with the rest of the info of AUthorization ...
1 vote
1 answer
2k views
Magento 2 - Getting user role
I would like to get the Role of the user logged in. I'm trying to use the \vendor\magento\module-user\Model\User.php class, but all results give me null or empty. I'm trying to use \vendor\magento\...
1 vote
0 answers
495 views
How can a role user see only own products not other users in Magento 2?
I am troubling with user roles in Magento 2. When I am trying to assign product permission to a user who can see only own products but all products displaying to him. How can I set a role in which ...
1 vote
0 answers
201 views
Magento 2 Particular order assign to sub-admin [closed]
Right now I am working with Magento 2 package, there has one out-of-scope Magento task. => Requirement: Customer Place order Admin create sub-admins The super-admin assign the order to sub-admin( ...
1 vote
3 answers
7k views
Get product image by its "Role" in the gallery
On the products grid in the category view I need to display additional image for some products. When I have a gallery of product images: $images = $product->getMediaGalleryImages(); foreach ($...
0 votes
1 answer
158 views
Admin role automatically unchecked when role is edited Magento 1.9
I have a problem on my Magento webiste and I can't figure why is this happened. I have 2 admin roles: administrator and shopmanager. Administrator role has all the permissions and shopmanager has ...
0 votes
1 answer
4k views
How to add image roles programmatically in products Magento 2?
I am creating products programmatically. I am using below code to add product image.. Images are adding perfectly fine.. but image roles are not showing. Can anyone please help me to add image roles ...
1 vote
1 answer
958 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/Acl/...