src/objects/MediaAttribute.php
public function checkPermissions($member = null) {

		// Retrieve the current site configuration permissions for customisation of media.

		$configuration = SiteConfig::current_site_config();
		return Permission::check($configuration->MediaPermission, 'any', $member);
	}
public function checkPermissions($member = null) {

		// Retrieve the current site configuration permissions for customisation of media.

		$configuration = SiteConfig::current_site_config();
		return Permission::check($configuration->MediaPermission, 'any', $member);
	}
public function checkPermissions ( $ member = null ) { // Retrieve the current site configuration permissions for customisation of media. $ configuration = SiteConfig :: current_site_config ( ) ; return Permission :: check ( $ configuration -> MediaPermission , 'any' , $ member ) ; }
Determine access for the current CMS user from the site configuration permissions.

@parameter <{CURRENT_MEMBER}> member
@return boolean
Determine access for the current CMS user from the site configuration permissions .