Non admin user node permission - edit attributes
Hello guys, a simple question.
Non admin user in Smart View wants to check the permissions for a node. Use case - execute command on a node (I know node ID) and context.
How can I verify that user has Edit Attributes permission for a node?
// HINT - We are using V2 api. We could switch to v1 API but it is more load for a server
// HINT - Properties command has to do it somehow cause it decides what fields in the form will be active. So there is a way. :)
Comments
-
SOLVED
I found the solution in one of the built in models that use permission rest point for effective permissions. One problem which can surprise you (like me :) ) is that if you have only SEE permission for a node - this model wont return NO Permission nodes. So if you have only SEE there will be undefined permission. Otherwise there is an array of props. User and Connector can be obtained from status.context.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories