msgbyte/tailchat

有关插件的权限 || About plug-in permissions

Opened this issue · 6 comments

我新增了一个账户里面是能随便添加插件的,但是能否限制用户的权限不让他们乱装,比如我作为管理员确定好这些官方插件和自定义的插件安装完成后,任何人注册登录这些功能都存在,但是普通用户没有新增插件的功能,给限制住。
我安装了后台管理,我看后台也没有此功能,如果在环境变量中更改,那也挺奇怪的得悄悄开开来然后增加了插件,再关闭吗= =...


I have created a new account and can add plug-ins at will, but can I restrict the user's permissions to prevent them from installing them randomly? For example, as an administrator, I have determined that after the installation of these official plug-ins and custom plug-ins is completed, anyone can register and log in. These functions all exist, but ordinary users do not have the ability to add plug-ins, so they are restricted.
I installed the backend management. I see that the backend does not have this function. If you change it in the environment variables, it would be strange to open it quietly and then add the plug-in and then close it = =...

用户能够看见的插件都是前端插件。不涉及到任何数据/权限相关的事情。


The plug-ins that users can see are front-end plug-ins. Does not involve any data/permissions related things.

如果你想要固定前端插件的话,需要在源码中修改插件列表并重新编译


If you want to fix the front-end plug-in, you need to modify the plug-in list in the source code and recompile

那这。,一下子就整不会了= =主要还是如果自定义,万一不想让他们瞎搞各种功能的时候使用的。毕竟插件所有人都能乱加,加了都能影响到。


Then this. , it won’t be fixed at once = = Mainly used if you want to customize it, just in case you don’t want them to mess around with various functions. After all, anyone can add plug-ins at will, and any addition will have an impact.

为什么会影响到呢?比如我在自己的电脑上安装软件,哪怕我给自己安装了一个木马病毒,也不会影响到远在网络另一头的你吧?


Why is it affected? For example, if I install software on my computer, even if I install a Trojan horse virus on myself, it will not affect you on the other side of the network, right?

如果你不想用插件中心,禁用即可


If you don’t want to use the plug-in center, just disable it

也行吧,主要是比如指向让他们用这些,然后他们一顿自己狂添加,= =,,,那我单独后续敲定就禁用插件中心去


That's okay, mainly for example, to let them use these, and then they add them like crazy, = =,,, then I will finalize it separately and disable the plug-in center