the issue see if cancel document check-out , had changed department (which has different security) document permissions not updated/changed previous published version permissions. happening if cancel check-out event handler not fire , see no way make fire when (yet) . event handler changing published version i.e. document v1.0 security change department when should change security on document v1.1 (which in draft mode) when cancel check-out security correct, eh2 changing security on both versions
edit
we using 2010. realize security , check in/out 2 separate functions, problem having when edit document forces check out (versioning turned on). when edit happens have event handler fires , changes document permissions based on metadata column document.
here whole process: upload new document assign metadata (one column indicates permissions assign document) document permissions programmatically set unique - document has unique permissions based on column choice noted above user can change document permissions changing metadata column. if versioning/checkin/checkout not on works fine checkin/checkout , versioning on; versions of document permissions change including published version , draft version. if cancel checkout document metadata goes correct version, permissions not changed there nothing fire off itemupdate event used change permissions.
we looking way have reapply permissions based on current published version when happens or keep permissions unique each version since sharepoint sees them separate documents.
so example document have draft version 1 set of permissions , published version set of permissions until draft gets approved.
the lowest level of security sharepoint supports @ listitem level. if modify security of listitem (or document), applied versions of item. cancelling checkout doesn't change fact it's still same listitem. cancelling checkout doesn't roll code executed in event handler.
Comments
Post a Comment