【问题标题】:Djangocms users don't have permission to add or edit pluginsDjangocms 用户无权添加或编辑插件
【发布时间】:2017-11-04 06:08:07
【问题描述】:

我有一个网站,目前使用 Django==1.8.6 和 Django-CMS 3.0.x 运行(目前正在升级)。

我的用户无法编辑任何前端插件。目前我确信这不仅适用于我的定制插件,也适用于 Django-CMS 附带的插件。作为测试,我创建了一个具有所有权限和员工身份的新用户(没有超级用户)。但是这个用户也不能编辑或添加插件。

对于我的搜索,我发现了这个:https://github.com/divio/djangocms-text-ckeditor/issues/78

当我使用 ckeditor 时,我还测试了那里给出的解决方案,但我没有文本条目,所以这个:

 sqlite3> select * from django_content_type where app_label = 'text';
 id | name | app_label | model 
 ----+------+-----------+-------
 23 | text | text      | text

为了结果

 sqlite3> select * from django_content_type where app_label = 'text';
 sqlite3>

我试图弄清楚如何调试权限错误。我也查看了 auth_permission,但一切似乎都很好。是否有调试权限过程以找出阻止我的用户使用前端编辑的原因?

更新

我当前安装的包:

Django==1.8.6
Django-Select2==4.3.1
Pillow==3.0.0
South==1.0.2
Unidecode==0.04.18
YURL==0.13
aldryn-apphooks-config==0.2.6
aldryn-boilerplates==0.7.3
aldryn-categories==1.0.1
aldryn-common==1.0.0
aldryn-newsblog==1.0.9
aldryn-people==1.1.2
aldryn-reversion==1.0.1
aldryn-translation-tools==0.2.1
argparse==1.4.0
backport-collections==0.1
cmsplugin-filer==1.0.0
dj-database-url==0.3.0
django-admin-sortable==1.8.4
django-appconf==1.0.1
django-appdata==0.1.4
django-autoslug==1.8.0
django-ckeditor-filebrowser-filer==0.1.1
django-classy-tags==0.6.2
django-cms==3.1.3
django-durationfield==0.5.2
django-easy-select2==1.3
django-filer==1.0.2
django-mptt==0.7.4
django-parler==1.5.1
django-phonenumber-field==0.7.2
django-polymorphic==0.7.2
django-reversion==1.8.7
django-sekizai==0.8.2
django-sortedm2m==1.3.2
django-taggit==0.17.3
django-treebeard==3.0
djangocms-admin-style==1.0.5
djangocms-column==1.5
djangocms-file==0.1
djangocms-flash==0.2.0
djangocms-googlemap==0.3
djangocms-inherit==0.1
djangocms-installer==0.7.9
djangocms-link==1.6.2
djangocms-picture==0.1
djangocms-style==1.5
djangocms-teaser==0.1
djangocms-text-ckeditor==2.7.0
djangocms-video==0.1
easy-thumbnails==2.2.1
gunicorn==19.4.3
html5lib==0.9999999
lxml==3.5.0
phonenumbers==7.1.1
python-dateutil==2.4.2
python-slugify==1.1.4
pytz==2015.7
simplejson==3.8.0
six==1.10.0
tzlocal==1.2
vobject==0.6.6
wheel==0.24.0
wsgiref==0.1.2

【问题讨论】:

  • 您好,您使用的是哪个 django CMS 版本? (我看到 3.0.x 但某些事情会根据次要/补丁版本而改变)。您的项目是否将 CMS_PERMISSIONS 设置为 True?
  • 嗨,我现在是 3.1.3。我已经更新到那个版本,因为它是最新的,没有大的变化。问题仍然存在。我还检查过: CMS_PERMISSION = True 已设置。我目前也在努力更新到最新版本。尽管aldryn-newsblog 存在一些问题,但我几乎已经完成了。但是这个非生产性更新版本的问题仍然存在。提示在数据库中查找这些权限的位置会很有帮助。我发现的表格似乎是正确的。

标签: django django-cms djangocms-text-ckeditor


【解决方案1】:

答案是在对cms的permissions.py进行了一些调试之后,我的站点权限在数据库中没有正确设置。在后端重置 thos 解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-04-24
    • 2013-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-24
    • 2016-12-15
    相关资源
    最近更新 更多