Back to Top

How To Add File Permission In Opencart

Updated 23 March 2016

Opencart Add File Permission: We can define access file permission code for current user into our module. When we install Opencart module into our store each time we have to allow the user permission for the module files. Like mentioned into below screenshot:

Screenshot_9

So we no need to go for the following procedure, you can also allow the file access or modify permission for user through addPermission() method. Like mentioned into below screenshot:

Screenshot_10

You have to write the code for permission in install function. Firstly load the user_group model and then call the addPermission() method with three arguments: currently login user_id, access_level, controller_name.

Searching for an experienced
Opencart Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home