简体   繁体   English

如何在2sxc新闻应用程序中配置权限

[英]How to Configure Permissions in 2sxc News App

I'm using the 2sxc News App for DNN and I'm trying to figure out how to grant users the ability to add/edit/delete news posts without also granting them the ability to change the layout or edit the module. 我正在将2sxc新闻应用程序用于DNN,并且试图弄清楚如何授予用户添加/编辑/删除新闻帖子的能力,而又不赋予他们更改布局或编辑模块的能力。

I tried to add the "2sxc Designers" role I've read about : 我尝试添加我已阅读的“ 2sxc Designers”角色:

新增群组

But having that role doesn't seem to change anything. 但是,扮演这个角色似乎并没有改变任何事情。

Am I doing something wrong in setting the "2sxc Designers" role and is this what I need to allow only post manipulation? 我在设置“ 2sxc Designers”角色时做错了什么吗?这是我仅允许后处理的功能吗?

This is an advanced use case, and I can't give you the full answer, but basically what you want to do is this: 这是一个高级用例,我无法为您提供完整的答案,但是基本上您想做的是:

  1. On the content-type, give the group custom permissions - so that the UI accepts changes by them https://github.com/2sic/2sxc/wiki/concept-permissions 在内容类型上,给组自定义权限-以便UI接受他们的更改https://github.com/2sic/2sxc/wiki/concept-permissions
  2. Since the toolbars won't appear for non-editors, you'll have to make this happen in the template. 由于非编辑者不会出现工具栏,因此必须在模板中进行此操作。 So add some razor to check if people of this role. 因此,请添加一些剃刀以检查是否具有此角色。 Then enable edit with Edit.Enable https://github.com/2sic/2sxc/wiki/razor-edit.enable 然后使用Edit启用编辑。启用https://github.com/2sic/2sxc/wiki/razor-edit.enable

These blog-posts may also help you: https://2sxc.org/en/blog/post/recipe-create-public-forms-with-2sxc 这些博客文章也可以为您提供帮助: https : //2sxc.org/en/blog/post/recipe-create-public-forms-with-2sxc

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

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