check permissions using REST API

check permissions using REST API

This question has suggested answer(s)

Is it possible to check the current users permissions using the rest api. For example, i want  a widget to make an ajax call to determine if the current user as create post permission on a selected blog.  

All Replies
  • You can list roles (telligent.com/.../22026.core-v2-role-widget-extension.aspx) by user id and the weblog and include permissions, (set include permissions = true, include = user, application = blogs, and the id = the blog's int id), then check through the permissions for each role looking for an Id of Blog_CreatePost and IsAllowed = true. If there are any then the user has permission to create a blog post for that blog.