TNL-2291 Add caching to discussion forum permissions
TNL-2291 Add caching to discussion forum permissions

Caches all permissions per user per course. Adds caching functionality to has_permission and replaces all instances of cached_has_permission with has_permission.

bmedx/modulestore,bmedx/modulestore,bmedx/modulestore