Skip to content
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

建议评论数据增加管理员角色的写权限。 #330

Open
xaoxuu opened this issue Jul 2, 2020 · 5 comments
Open

建议评论数据增加管理员角色的写权限。 #330

xaoxuu opened this issue Jul 2, 2020 · 5 comments

Comments

@xaoxuu
Copy link
Contributor

xaoxuu commented Jul 2, 2020

目前没有写权限,云引擎评论管理可能是通过 masterKey 的超级权限来修改的,客户端不支持。
image

我写了个 app,想通过 app 来管理评论,现在就差权限了。

我自己尝试着增加一个名为 “admin” 的角色的权限,测试通过,希望开发者可以增加。

  , F = function() {
  var e = new AV.ACL;
+ e.setWriteAccess("role:admin",true);
  return e.setPublicReadAccess(!0),
  e.setPublicWriteAccess(!1),
  e

image

通过 app 随时删除一些垃圾评论可比登网页方便多了

@xaoxuu
Copy link
Contributor Author

xaoxuu commented Jul 3, 2020

@xCss
Copy link
Owner

xCss commented Jul 3, 2020

目前没有写权限,云引擎评论管理可能是通过 masterKey 的超级权限来修改的,客户端不支持。
image

我写了个 app,想通过 app 来管理评论,现在就差权限了。

我自己尝试着增加一个名为 “admin” 的角色的权限,测试通过,希望开发者可以增加。

  , F = function() {
  var e = new AV.ACL;
+ e.setWriteAccess("role:admin",true);
  return e.setPublicReadAccess(!0),
  e.setPublicWriteAccess(!1),
  e
image

通过 app 随时删除一些垃圾评论可比登网页方便多了

下个版本我加个配置项吧,发版前可能需要@xaoxuu 配合测试~ 😄

@xaoxuu
Copy link
Contributor Author

xaoxuu commented Jul 3, 2020

好的👌,我的 app 如果可以测试了我发个测试版链接出来

@xaoxuu
Copy link
Contributor Author

xaoxuu commented Jul 4, 2020

点击链接:https://testflight.apple.com/join/zA4MOzDd

或者扫二维码:

@xaoxuu
Copy link
Contributor Author

xaoxuu commented Jul 22, 2020

@xCss Android 测试版本也有了: https://github.com/yinhanlei/Valine-Android/releases/

xaoxuu referenced this issue in volantis-x/hexo-theme-volantis Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants