src/Admin/MultisitesModelAdminExtension.php
public function updateEditForm($form){
		if($this->modelIsMultiSitesAware()) {
			$managedSites = Multisites::inst()->sitesManagedByMember();
			$source = Site::get()->filter('ID', Multisites::inst()->sitesManagedByMember())->map('ID', 'Title')->toArray();
			$plural = singleton($this->owner->modelClass)->plural_name();
			if(!count($source)){
				$form->setFields(FieldList::create(
					LiteralField::create('NotAManager', "You do not have permission to manage $plural on any Sites")
				));
			}
		}
	}
public function updateEditForm($form){
		if($this->modelIsMultiSitesAware()) {
			$managedSites = Multisites::inst()->sitesManagedByMember();
			$source = Site::get()->filter('ID', Multisites::inst()->sitesManagedByMember())->map('ID', 'Title')->toArray();
			$plural = singleton($this->owner->modelClass)->plural_name();
			if(!count($source)){
				$form->setFields(FieldList::create(
					LiteralField::create('NotAManager', "You do not have permission to manage $plural on any Sites")
				));
			}
		}
	}
public function updateEditForm ( $ form ) { if ( $ this -> modelIsMultiSitesAware ( ) ) { $ managedSites = Multisites :: inst ( ) -> sitesManagedByMember ( ) ; $ source = Site :: get ( ) -> filter ( 'ID' , Multisites :: inst ( ) -> sitesManagedByMember ( ) ) -> map ( 'ID' , 'Title' ) -> toArray ( ) ; $ plural = singleton ( $ this -> owner -> modelClass ) -> plural_name ( ) ; if ( ! count ( $ source ) ) { $ form -> setFields ( FieldList :: create ( LiteralField :: create ( 'NotAManager' , "You do not have permission to manage $plural on any Sites" ) ) ) ; } } }
If the current member is not a "Manager" of any sites, they shouldn't be able to manage MultisitesAware DataObjects.
If the current member is not a Manager of any sites they shouldn t be able to manage MultisitesAware DataObjects .