Viewing Draft Version
Good morning everyone,
I’ve configured a custom list with specific versioning settings as follows:
Content approval for submitted items is required: YesCreate a new version each time an item is edited in this list: YesVisibility of draft items: Only users who can edit items
Each user is assigned to a different SharePoint Group + READ GROUP (For views), referred to as an “Entity.” The business owner has the authority to change the assigned Entity for an item.
When an Entity is changed, an event handler is triggered to revoke the previous permissions and grant EDIT permissions to the new Entity. Consequently, the item’s Approval status transitions from Approved to Pending.
The issue arises when the Entity is changed, and despite the event handler removing the old permissions and assigning EDIT permissions to the new Entity, the Approval status remains Pending. Furthermore, the user who initiated the Entity change continues to see the item as a draft, even if their Entity lacks permissions for it.
E.G:
Business created an item on behalf an Entity XXXXX (Approval Status remaining all the time Pending)
Was given EDIT item permissions to Entity XXX Only the Entity XXX and business can see it -> CorrectEntity XXX change the item to Entity YYYOnly the Entity YYY and business can see it -> CorrectThe user who change the entity also can see -> WRONG
I cannot understand what is wrong in the configuration or code, since the draft security is:
Visibility of draft items: Only users who can edit items
Good morning everyone,I’ve configured a custom list with specific versioning settings as follows:Content approval for submitted items is required: YesCreate a new version each time an item is edited in this list: YesVisibility of draft items: Only users who can edit itemsEach user is assigned to a different SharePoint Group + READ GROUP (For views), referred to as an “Entity.” The business owner has the authority to change the assigned Entity for an item. When an Entity is changed, an event handler is triggered to revoke the previous permissions and grant EDIT permissions to the new Entity. Consequently, the item’s Approval status transitions from Approved to Pending. The issue arises when the Entity is changed, and despite the event handler removing the old permissions and assigning EDIT permissions to the new Entity, the Approval status remains Pending. Furthermore, the user who initiated the Entity change continues to see the item as a draft, even if their Entity lacks permissions for it. E.G:Business created an item on behalf an Entity XXXXX (Approval Status remaining all the time Pending)Was given EDIT item permissions to Entity XXX Only the Entity XXX and business can see it -> CorrectEntity XXX change the item to Entity YYYOnly the Entity YYY and business can see it -> CorrectThe user who change the entity also can see -> WRONGI cannot understand what is wrong in the configuration or code, since the draft security is:Visibility of draft items: Only users who can edit items Read More