Access Denied. You do not have the appropriate permissions to perform this operation.
Is there a way for a nomal user to be able to set the permissions of the document to read-only
or in the script give them elevated privlidges temporarlity to set the permisions.
This is my code fragment:
// Set the Permission we want
// Alfrseco Admins Delete
// Everyone Read-Only
// Stop inherting permissions