SP.Site.allowMasterPageEditing property (sp.js)

Gets or sets a value that specifies whether master page editing is allowed on this site collection.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Site.get_allowMasterPageEditing ()
var value = SP.Site.set_allowMasterPageEditing ()

Return value

Type: Boolean

Specifies whether master page editing is allowed on this site collection. If true, master page editing is allowed on this site collection; otherwise, master page editing is not allowed on this site collection.

Remarks

See Web.AllowMasterPageEditingForCurrentUser, which is the method for determining the behavior for the current user. The default, if not disabled on the Web application, is false.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/site/allowMasterPageEditing

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/site/allowMasterPageEditing

GET syntax

GET http://<sitecollection>/<site>/_api/site/allowMasterPageEditing