Page 1 of 1

Permission problem, new payment method

Posted: Sun Aug 15, 2010 5:25 pm
by opcfan
Hello everybody.

I copied "twocheckout.php/tpl" to:

opencart/admin/controller/payment/pouzece.php
opencart/admin/view/template/payment/pouzece.tpl
opencart/admin/language/english/payment/pouzece.php

In controller I had replaced TwoCheckout with Pouzece and modified in pouzece.tpl what I had to modified.. But when I go Edit and press Save button it says:

Code: Select all

You do not have permission to access this page, please refer to your system administrator.
Thanks.

Re: Permission problem, new payment method

Posted: Sun Aug 15, 2010 7:10 pm
by JAY6390
SYSTEM > USERS > USER GROUPS
put a checkbox next to the payment module in both boxes

Re: Permission problem, new payment method

Posted: Sun Aug 15, 2010 9:47 pm
by opcfan
I found in user group:

Demonstration
Top Administrator

I edited both of them. I found:

Access permission: payment/pouzece
Modify permission: payment/pouzece

(in Demonstration and Top Administrator too)

And I checked it. But it still says:
You do not have permission to access this page, please refer to your system administrator.

Re: Permission problem, new payment method

Posted: Mon Aug 16, 2010 1:10 am
by JAY6390
check the validate code has got the right name for the module, ie

Code: Select all

if (!$this->user->hasPermission('modify', 'payment/pouzece ')) { 

Re: Permission problem, new payment method

Posted: Mon Aug 16, 2010 1:20 am
by opcfan
Now it's ok. Thanks a lot!! :)

Re: Permission problem, new payment method

Posted: Mon Aug 16, 2010 1:23 am
by JAY6390
hehe no problem