/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_create_post の値に関心があります。おそらくそれを取得する最も効率的な方法は、ユーザーの代わりに投稿を作成しようとし、返されたエラーを処理することですが、それは最後の手段であるべきです。