Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param	\IPS\Member|NULL	$member		If checking access, the member to check for, or NULL to not check access
  * @return	void
  */
 public function __construct(\IPS\Member $member = NULL)
 {
     if ($member === NULL or $member->canAccessModule(\IPS\Application\Module::get('membermap', 'membermap', 'front'))) {
         $this->classes[] = 'IPS\\membermap\\Markers\\Markers';
     }
 }
Exemplo n.º 2
0
 /**
  * Can the currently logged in user access the content this item links to?
  *
  * @return	bool
  */
 public function canAccessContent()
 {
     return \IPS\Member::loggedIn()->canAccessModule(\IPS\Application\Module::get('membermap', 'membermap'));
 }
Exemplo n.º 3
0
 /**
  * Permission check for attachments
  *
  * @param	\IPS\Member	$member		The member
  * @param	int|null	$id1		Primary ID
  * @param	int|null	$id2		Secondary ID
  * @param	string|null	$id3		Arbitrary data
  * @param	array		$attachment	The attachment data
  * @return	bool
  */
 public function attachmentPermissionCheck($member, $id1, $id2, $id3, $attachment)
 {
     return $member->canAccessModule(\IPS\Application\Module::get('membermap', 'membermap'));
 }