Skip to content

Instantly share code, notes, and snippets.

@tchrist
Created August 13, 2012 19:24
Show Gist options
  • Save tchrist/3343463 to your computer and use it in GitHub Desktop.
Save tchrist/3343463 to your computer and use it in GitHub Desktop.
--- a/lib/model/FieldUser.php
+++ b/lib/model/FieldUser.php
@@ -2221,9 +2221,10 @@ SQL;
}
$client = FieldClientPeer::getClient();
+ $admin = $client->getNetworkAdmin();
- if ($client->getNetworkAdmin() InstanceOf FieldUser &&
- $this->getId() == $client->getNetworkAdmin()->getId())
+ if ($admin InstanceOf FieldUser &&
+ $this->getId() == $admin->getId())
{
$administratorAdapter = new NF_ServiceAdapter_MissionControl_ClientAdministrator();
$clientAdapter = new NF_ServiceAdapter_MissionControl_Client();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment