通过API获取用户对话题的权限

是否有比向 /t/-/topicId.json 发送请求更有效的方法来获取用户对某个主题的权限?我感兴趣的值来自该请求返回的 details 属性。例如:

details: {
can_edit: true,
notification_level: 3,
notifications_reason_id: 1,
can_move_posts: true,
can_delete: true,
can_remove_allowed_users: true,
can_invite_to: true,
can_invite_via_email: true,
can_create_post: true,
can_reply_as_new_topic: true,
...
}

我主要对 can_create_post 的值感兴趣。我想,最有效的方法是尝试代表用户创建帖子,然后处理返回的任何错误,但这应该是最后的手段。

2 个赞