mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Caldav: Improve principal -> actualPrincipal detection: use session alias instead of login
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@642 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
ecffaed107
commit
9a3d3c2de9
@ -686,7 +686,7 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
public void sendPrincipal(CaldavRequest request, String prefix, String principal) throws IOException {
|
public void sendPrincipal(CaldavRequest request, String prefix, String principal) throws IOException {
|
||||||
// actual principal is email address
|
// actual principal is email address
|
||||||
String actualPrincipal = principal;
|
String actualPrincipal = principal;
|
||||||
if ("users".equals(prefix) && userName.equals(principal)) {
|
if ("users".equals(prefix) && session.getAlias().equalsIgnoreCase(principal)) {
|
||||||
actualPrincipal = session.getEmail();
|
actualPrincipal = session.getEmail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user