Commit df1a9343 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '5543-enable-mail-tab-for-entries-having-mail-attribute' into '1.3-dev'

Resolve "Enable mail tab for entries having mail attribute"

See merge request fusiondirectory/fd-plugins!138
parents 5cf0b4fb 019aa6bf
......@@ -2,7 +2,7 @@
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2007 Fabian Hicker
Copyright (C) 2011-2016 FusionDirectory
Copyright (C) 2011-2018 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -197,6 +197,15 @@ class mailAccount extends simplePlugin
}
}
function is_this_account($attrs)
{
if (parent::is_this_account($attrs)) {
return TRUE;
} else {
return !empty($attrs['mail'][0]);
}
}
/* We need $mailAccount->uid to return the uid for mailMethod */
public function __get($name)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment