SPWeb.AllowMasterPageEditingForCurrentUser property
SharePoint 2013
A Boolean value that specifies whether the current user is allowed to edit master pages.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)