Detect if Approving Enabled

27/10/2012 16:30

 

 string libraryName = "Style library";
//this describes library settings/version settings
//you have to approve file         
            bool approvingEnabled = Web.Lists[libraryName].EnableModeration;
 
//it's different from
SPFolder folder = web.GetFolder("PagesUrl").EnableModeration;
//you cannot approve file, only publish