Custom Method for Checking Permissions on a SPWeb Object

The out-of-the-box method DoesUserHavePermissions() on an SPWeb object does not take indirect membership into account (i.e. the current user is a member of a domain group that has access the the SPWeb being checked).  To get around this, I use the following method (DoesUserHavePermssionsToWeb(SPUser, SPWeb)):

(more…)

Performance Optimization WordPress Plugins by W3 EDGE