Skip to content

Commit e2bde77

Browse files
committed
more merge changes
1 parent 2834bcf commit e2bde77

49 files changed

Lines changed: 147 additions & 30 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

TODOS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add logs back

__init__.pyc

148 Bytes
Binary file not shown.

apps/__init__.pyc

136 Bytes
Binary file not shown.

apps/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ def processor(self):
77
if has_roles(user, ["partner", "national", "district"]):
88
tabs.append({ "link": "/", "title": "National" })
99
tabs.append({ "link": "/district/", "title": "District"})
10-
if has_roles(user, ["partner", "national", "district", "gmc"]):
11-
tabs.append({ "link": "/gmc/", "title": "GMC"})
10+
if has_roles(user, ["partner", "national", "district", "clinic"]):
11+
tabs.append({ "link": "/clinic/", "title": "Clinic"})
1212
tabs.append({ "link": "/child/", "title": "Child"})
1313
tabs.append({ "link": "/hsa/", "title": "HSA"})
1414
if has_roles(user, ["partner", "national", "district"]):
1515
tabs.append({ "link": "/setup/", "title": "Setup"})
1616
context = {
17-
"site": { "title": "Malawi",
17+
"site": { "title": "RapidResponse",
1818
"tabs": tabs },
1919
"settings": settings,
2020
}

apps/context.pyc

1.04 KB
Binary file not shown.

apps/shortcuts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def has_access(request, zone=None, facility=None):
7272
log("National or Partner, access")
7373
return True
7474

75-
# gmc just to the facility only
76-
if int(profile.role) == profile.GMC:
77-
log("GMC user")
75+
# clinic just to the facility only
76+
if int(profile.role) == profile.CLINIC:
77+
log("Clinic user")
7878
if facility and profile.facility == facility:
7979
log("Facility match, access")
8080
return True

apps/shortcuts.pyc

4.16 KB
Binary file not shown.

apps/sms/__init__.pyc

140 Bytes
Binary file not shown.

apps/sms/admin.pyc

1.61 KB
Binary file not shown.

apps/sms/app.pyc

2.66 KB
Binary file not shown.

0 commit comments

Comments
 (0)