New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

管理后台采用新的权限系统后,富文本编辑商品图片时报错,没有权限 #62

Closed
xuhuaiqu opened this Issue Nov 27, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@xuhuaiqu

xuhuaiqu commented Nov 27, 2018

$uploadImgUrl = 'upimgurl="'.CUrl::getUrl('cms/staticblock/imageupload').'" upimgext="jpg,jpeg,gif,png"';
$uploadFlashUrl = 'upflashurl="'.CUrl::getUrl('cms/staticblock/flashupload').'" upflashext="swf"';
$uploadLinkUrl = 'uplinkurl="'.CUrl::getUrl('cms/staticblock/linkupload').'" uplinkext="zip,rar,txt"';
$uploadMediaUrl = 'upmediaurl="'.CUrl::getUrl('cms/staticblock/mediaupload').'" upmediaext:"avi"="" ';

base里可见这部分代码。不过没有默认的权限。另外个人觉得在AppadminbaseBlockEdit调用cms/staticblock/imageupload的路由,没有解耦

@fancyecommerce

This comment has been minimized.

Member

fancyecommerce commented Nov 27, 2018

1.这个问题已经发现了,代码已经提交了,新版将会修复这个问题,更新代码后
执行一下migrate就可以

2.嗯,的确是,这个url改成从services中获取,然后就可以通过配置的方式更改了

@fancyecommerce

This comment has been minimized.

Member

fancyecommerce commented Nov 27, 2018

等一下新版吧,前几天后台添加多语言,这几天修补fecshop的csrf问题。

周末应该可以发新版本

@fancyecommerce

This comment has been minimized.

Member

fancyecommerce commented Nov 27, 2018

你可以先把:https://github.com/fecshop/yii2_fecshop/blob/master/app/appadmin/modules/AppadminController.php#L57

这个部分的权限验证去掉,等新版

@fancyecommerce

This comment has been minimized.

Member

fancyecommerce commented Nov 28, 2018

因为权限在数据库里面,如果你提前插入了数据,那么后面升级migrate会有问题的,因此,等下新版吧。

@xuhuaiqu xuhuaiqu closed this Nov 28, 2018

@fancyecommerce

This comment has been minimized.

Member

fancyecommerce commented Nov 28, 2018

@xuhuaiqu 解耦:38f8faa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment