dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41403
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21091: event-capture: if program has no user role, then not accessible
------------------------------------------------------------
revno: 21091
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-11-17 16:28:34 +0100
message:
event-capture: if program has no user role, then not accessible
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js 2015-11-16 15:48:46 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/services.js 2015-11-17 15:28:34 +0000
@@ -144,7 +144,7 @@
var hasRole = false;
if($.isEmptyObject(program.userRoles)){
- return !hasRole;
+ return hasRole;
}
for(var i=0; i < userRoles.length && !hasRole; i++){