~dhis2-devs-core/dhis2/synchmanager_2.20

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js

  • Committer: Abyot Asalefew Gizaw
  • Date: 2015-08-25 15:20:26 UTC
  • Revision ID: abyota@gmail.com-20150825152026-x3yq1jp12kw0r14d
R. 19847

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
            if( program.userRoles.hasOwnProperty( userRoles[i].id ) ){
124
124
                hasRole = true;
125
125
            }
 
126
            
 
127
            if(!hasRole && userRoles[i].authorities && userRoles[i].authorities.indexOf('ALL') !== -1){
 
128
                hasRole = true;
 
129
            }
126
130
        }        
127
131
        return hasRole;        
128
132
    };