Hey,
Had a glance at the REST and Remote API and I couldn't find ways to validate permissions. For example:
* Can user X edit pageId N?
* Can user X create pages on space S?
* Can user X admin space S?
Could somebody point me to the right direction?
Roberto
--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You need to make 2 calls to determine this. Retrieve all the permissions defined on for the individual page (Vector<ContentPermission> getPagePermissions(String token, String pageId)). If there are edit restrictions on the individual page, use these to determine the user's permission. If the page has no edit restrictions defined, then retrieve the user's space-level permissions (Vector<String> getPermissionsForUser(String token, String spaceKey, String userName)). Use these to determine if the user has the edit pages permission for the target space.
--