Jump to content

Restrict new employee from adding or updating price from admin product controller


Yogesh Raghav

Recommended Posts

I want to know that how we can restrict a new employee or some specific employee from accessing the feature price from admin product controller. we dont want this user to add or update price.in short we want to disable the tab price when this employee adds /updates products.
also iam trying the same by overriding AdminProductsController but iam unable to call employee id in it
 

we can call an employee id in default AdminEmployeeController like $emp_id = $this->context->employee->id; but how to call the same in AdminProductController?do we need to redeclare class or what.
i just want that a particular employee wont be able to access the price tab while adding price and i want some thing like

pointer-events: none; to that click event to "price" tab so i want to know how to achieve this?
any idea?

Edited by Yogesh Raghav (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...