Nguyen
Nguyen

Reputation: 21

How to save Webpart property with Contribute permission

This is my code

 public string siteURL = string.Empty;
    [Personalizable(PersonalizationScope.Shared),        
        //ReadOnly(true),
    WebBrowsable(false),
    WebDisplayName("Columns Filter"),
    WebDescription("Columns Filter Property"),
    Category("Miscellaneous")]        
    public string SiteURL
    {
        get
        {
            return siteURL;
        }
        set
        {
            siteURL = value;
        }
    }

but Webpart property cannot save with Contribute permission. Please help me to save property whit Contribute permission.

Thanks Nguyen

Upvotes: 1

Views: 680

Answers (1)

Shoban
Shoban

Reputation: 23016

By Default Contributors will not have access. Go to webpart galleries and then Change the permissions for this webpart.

Upvotes: 1

Related Questions