简体   繁体   English

OpenCart中的权限被拒绝?

[英]Permission Denied in OpenCart?

I have installed a extension in OpenCart 2.3.0.2. 我已经在OpenCart 2.3.0.2中安装了扩展程序。 Installation is successful. 安装成功。 But now I can't modify the extension according to my needs. 但是现在我无法根据需要修改扩展名。 When I click on the edit button. 当我单击编辑按钮时。 It's showing me "Permission denied" message (screen shot attached). 它向我显示“权限被拒绝”消息(附有屏幕截图)。 在此处输入图片说明 I've searched a lot over the internet, but haven't found any concrete solution which matched with my issue. 我已经在互联网上进行了大量搜索,但是没有找到与我的问题相符的具体解决方案。 I can't understand where to look in to solve this issue actually. 我不知道实际上该去哪里解决这个问题。

I need to solve this issue. 我需要解决这个问题。 Hope you guys will help me here. 希望你们能在这里帮助我。

Some possible causes of this problem: 此问题的一些可能原因:

  1. Did you actually run the install on the extension after you copied the files up to your site? 在将文件复制到站点之后,您是否实际上在扩展程序上运行安装? This would have been done in Admin->Extensions->Extensions, then select the extension type, then hit the "+" sign for the extension. 这可以在Admin-> Extensions-> Extensions中完成,然后选择扩展名类型,然后为扩展名打“ +”号。

  2. Check Admin->System->Users->Users to be sure your User Group is "Administrator." 检查“管理员”->“系统”->“用户”->“用户”,以确保您的用户组是“管理员”。

  3. Check the file under admin/controller for the extension, and look for a check of hasPermission . 检查admin/controller下的文件以获取扩展名,并检查hasPermission It will look like this: 它看起来像这样:

    if (!$this->user->hasPermission('modify', 'extension/YOUR_EXTENSION')) { $this->error['warning'] = $this->language->get('error_permission'); if(!$ this-> user-> hasPermission('modify','extension / YOUR_EXTENSION')){$ this-> error ['warning'] = $ this->语言-> get('error_permission'); } }

    This will show you where to look in the database. 这将向您显示在数据库中的查找位置。 Look at the table oc_user_group . 查看表oc_user_group

I think you're missing permissions in your User Group. 我认为您在用户组中缺少权限。

To solve this go to Admin panel -> System -> Users -> User Groups -> and edit User Group of your account (you can know what it is in System -> Users -> Users -> and edit your account) 要解决此问题,请转到管理面板->系统->用户->用户组->并编辑您的帐户的用户组(您可以知道系统->用户->用户->并编辑您的帐户)

On this page you can set permissions 'Access Permission' and 'Modify Permission'. 在此页面上,您可以将权限设置为“访问权限”和“修改权限”。 Click 'Select All' for both and 'Save'. 单击“全选”和“保存”。

After that you should be able to access your extension. 之后,您应该可以访问您的扩展程序。 Let me know if it works. 让我知道它是否有效。

It's one of the following issues: 这是以下问题之一:

1) Permissions for the extension (You can change them in User Groups as Andre said) 1)扩展权限(您可以按照Andre的说明在用户组中进行更改)

2) The url of the extension (route= ... ) is wrong, or 2)扩展名(route = ...)的网址错误,或者

3) Files of the extension are missing. 3)扩展名的文件丢失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM