Two Permission bugs squashed!


#1

Hey all! We’ve had a couple updates over the weekend to fix a few odd bugs.

The first one deals with the communications “Index” page - that’s the list of communications itself:

Previously a person without permission to see a particular letter could still see it in this list. When clicking on it they would receive an error, but they would be able to see this:

Now they’ll instead see a message alerting them that they do not have permission.

The second bug relates to this little box on the reports page:

image

If a user has the security role “Practitioner” they are able to use this to access their own data. However if the user isn’t actually a practitioner, these report would fail, and the user would get an error.
Now if the person isn’t actually a practitioner, we’ll instead hide this window from them.