merged fix for MDL-10818, do not display broken graph when user has no permission to view actities graph
merged fix for MDL-10818, do not display broken graph when user has no permission to view actities graph

dilawar/moodle