Don't fire conversion tracking for the sourcefabric_admin user
This commit is contained in:
parent
084c6dd662
commit
bc2acaea51
2 changed files with 12 additions and 1 deletions
|
@ -69,6 +69,15 @@ class Application_Model_User
|
|||
return $result;
|
||||
}
|
||||
|
||||
public function isSourcefabricAdmin()
|
||||
{
|
||||
$username = $this->getLogin();
|
||||
if ($username == "sourcefabric_admin") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO : refactor code to only accept arrays for isUserType and
|
||||
// simplify code even further
|
||||
public function isUserType($type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue