[Bug 1526596] [NEW] Can't export event

Public bug reported:

I used the Event Export feature in Import-Export module to export event
of a program and I got an exception screen with message:

// 20151216101856
// https://dhis2.co/malaria/api/events.xml.gz?attachment=events.xml.gz&program=HprGTJ9ndsH&orgUnit=IWp9dQGM0bS&ouMode=DESCENDANTS&startDate=2015-12-16&endDate=2015-12-16&links=false

{
"httpStatus": "Conflict",
"httpStatusCode": 409,
"status": "ERROR",
"message": "User has no access to program: HprGTJ9ndsH"
}
The message says"User has no access to program: HprGTJ9ndsH", but my account is superuser and already assigned that program to Superuser user role.

This message from DHIS 2 Version 2.21 R20945

** Affects: dhis2
     Importance: Undecided
         Status: New

** Description changed:

  I used the Event Export feature in Import-Export module to export event
  of a program and I got an exception screen with message:
  
  // 20151216101856
  // https://dhis2.co/malaria/api/events.xml.gz?attachment=events.xml.gz&program=HprGTJ9ndsH&orgUnit=IWp9dQGM0bS&ouMode=DESCENDANTS&startDate=2015-12-16&endDate=2015-12-16&links=false
  
  {
- "httpStatus": "Conflict",
- "httpStatusCode": 409,
- "status": "ERROR",
- "message": "User has no access to program: HprGTJ9ndsH"
+ "httpStatus": "Conflict",
+ "httpStatusCode": 409,
+ "status": "ERROR",
+ "message": "User has no access to program: HprGTJ9ndsH"
  }
  The message says"User has no access to program: HprGTJ9ndsH", but my account is superuser and already assigned that program to Superuser user role.

···

+
+ This message from DHIS 2 Version 2.21 R20945

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1526596

Title:
  Can't export event

Status in DHIS:
  New

Bug description:
  I used the Event Export feature in Import-Export module to export
  event of a program and I got an exception screen with message:

  // 20151216101856
  // https://dhis2.co/malaria/api/events.xml.gz?attachment=events.xml.gz&program=HprGTJ9ndsH&orgUnit=IWp9dQGM0bS&ouMode=DESCENDANTS&startDate=2015-12-16&endDate=2015-12-16&links=false

  {
   "httpStatus": "Conflict",
   "httpStatusCode": 409,
   "status": "ERROR",
   "message": "User has no access to program: HprGTJ9ndsH"
  }
  The message says"User has no access to program: HprGTJ9ndsH", but my account is superuser and already assigned that program to Superuser user role.

  This message from DHIS 2 Version 2.21 R20945

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1526596/+subscriptions