when in token auth mode, accept phones that are authorized

This commit is contained in:
Harald Welte (local) 2009-08-13 20:44:23 +02:00
parent 2928bc0233
commit ee9afe332d
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ static int authorize_subscriber(struct gsm_loc_updating_operation *loc,
case GSM_AUTH_POLICY_CLOSED:
return subscriber->authorized;
case GSM_AUTH_POLICY_TOKEN:
if (subscriber->authorized)
return subscriber->authorized;
return (subscriber->flags & GSM_SUBSCRIBER_FIRST_CONTACT);
case GSM_AUTH_POLICY_ACCEPT_ALL:
return 1;