Post by opcfan » Sun Aug 15, 2010 5:25 pm

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.

Newbie

Posts

Joined
Sun Aug 15, 2010 5:20 pm

Post by JAY6390 » Sun Aug 15, 2010 7:10 pm

SYSTEM > USERS > USER GROUPS
put a checkbox next to the payment module in both boxes

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by opcfan » Sun Aug 15, 2010 9:47 pm

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.

Newbie

Posts

Joined
Sun Aug 15, 2010 5:20 pm

Post by JAY6390 » Mon Aug 16, 2010 1:10 am

check the validate code has got the right name for the module, ie

Code: Select all

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by opcfan » Mon Aug 16, 2010 1:20 am

Now it's ok. Thanks a lot!! :)

Newbie

Posts

Joined
Sun Aug 15, 2010 5:20 pm

Post by JAY6390 » Mon Aug 16, 2010 1:23 am

hehe no problem

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 16 guests