Changeset 5154 for branches


Ignore:
Timestamp:
11/07/11 14:19:40 (8 years ago)
Author:
niltonneto
Message:

Ticket #2292 - Corrigido validação dos módulos permitidos no ExpressoMini?.

Location:
branches/2.2/mobile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/index.php

    r5053 r5154  
    6767        include_once('../header.inc.php'); 
    6868        include_once('./mobile_header.inc.php'); 
     69 
     70        if(     array_key_exists('expressoMail1_2',$GLOBALS['phpgw_info']['user']['apps']) === FALSE || 
     71                array_key_exists('contactcenter',$GLOBALS['phpgw_info']['user']['apps']) === FALSE || 
     72                array_key_exists('calendar',$GLOBALS['phpgw_info']['user']['apps']) === FALSE) { 
     73                        $GLOBALS['phpgw']->session->phpgw_setcookie('lem', null); 
     74                        $GLOBALS['phpgw']->session->phpgw_setcookie('pem', null);                        
     75                        Header('Location: ' . $GLOBALS['phpgw']->link('/mobile/login.php?cd=97')); 
     76        } 
    6977         
    7078        if($mobileapp == 'home') 
  • branches/2.2/mobile/login.php

    r5054 r5154  
    3939                        case 6: 
    4040                                $_return = lang('Your password has expired, and you do not have access to change it'); 
     41                                break; 
     42                        case 97: 
     43                                $_return = lang('Access not permitted'); 
    4144                                break; 
    4245                        case 98: 
Note: See TracChangeset for help on using the changeset viewer.