Skip to content
Snippets Groups Projects
Commit 0d97e6b3 authored by Edric Milaret's avatar Edric Milaret
Browse files

fix account rolestate

There is no more ip2ip account but new sip account with
empty hostname don't report some properties as
available.

This is a regression caused by the suppresion of ip2ip account

Change-Id: I6d69192202eda1113f3acf1e96230e12f429b2d9
Tuleap: #549
parent c656d1eb
Branches
No related tags found
No related merge requests found
...@@ -2201,21 +2201,6 @@ Account::RoleState Account::roleState(Account::Role role) const ...@@ -2201,21 +2201,6 @@ Account::RoleState Account::roleState(Account::Role role) const
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch" #pragma GCC diagnostic ignored "-Wswitch"
//Hide unsupported IP2IP fields
if ((!isNew()) && isIp2ip()) {
switch(role) {
case Account::Role::Password:
case Account::Role::RegistrationExpire:
case Account::Role::Hostname:
case Account::Role::Mailbox:
case Account::Role::Username:
case Account::Role::Alias:
return Account::RoleState::UNAVAILABLE;
default:
break;
}
}
//Hide unsupported fields by protocol //Hide unsupported fields by protocol
switch(protocol()) { switch(protocol()) {
case Account::Protocol::RING: case Account::Protocol::RING:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment