sharepoint - How to determine whether a user can modify personalizable property? -


i have web part property has personalizable attribute on it. there's button on web part changes property state. problem when there's user read permissions given him, property cannot updated, because sharepoint doesn't allow (btw, such users not allowed swith web part edit mode also).

so question following: how determine whether user can modify personalizable property value (so can know when hide button)? know can iterate through permissions , read there, don't idea several reasons.

sharepoint somehow knows if user allowed edit web part (switch edit mode) , wonder if there's property can tell if user allowed edit web part.

thank you.

the microsoft.sharepoint.webpartpages.webpart has permissions property that's type enum 3 values: allproperties, personalproperties, , none. try using that.

if you're using .net webpart object can cast temporarily.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -