Samir Karmacharya
Samir Karmacharya

Reputation: 890

Permission Denied! when install extension in opencart 2.3.0.2

I have install extension "newsletter" and "simple blog" on opencart

2.3.0.2 add permission in user/user_group then also. when i try to enable the status it will display "Permission Denied!" message and

doesn't allow me to display this module. But same module working fine one previous opencart 2.2.X and one get same problem and got solution?

if this is due to compatibility problem where i can change the permission in code of module.

is any one know.

Upvotes: 2

Views: 8209

Answers (4)

Rahul
Rahul

Reputation: 1

$this->user>->hasPermission( 'modify', extension/extension);

Upvotes: 0

Treasure
Treasure

Reputation: 92

Forget adjusting tables You don't need to change anything in your database to fix this issue

Here is an example from an older version controller: Code: Select all

        $this->redirect($this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'));

It should now be written as: Code: Select all

        $this->redirect($this->url->link('extension/extension', 'token=' . $this->session->data['token'], 'SSL'));

So if you have an old module check your controller i.e. admin/controller/module/yourmodule.php then find 'extension/module' replace 'extension/extension'

Upvotes: 0

BartH
BartH

Reputation: 3

Most likely the module installation does not allow you to set user group rights. You can do this manually.

  • Login to you PHPMyAdmin
  • Go to table oc_user_group
  • Edit user group ID 1
  • Add and instance of your extension by the following example extension/module/modulename
  • Save
  • Go to module in admin section

Upvotes: 0

serkanbalta
serkanbalta

Reputation: 103

Go to Settings>Users>User Groups than choose which user group your admin belongs to. You will see "Access Permissions" and "Modify Permissions". Click the "check all" link for both permission group, than save. You are good to go :)

Upvotes: 1

Related Questions