standardize access permission errors in web interface
issue: permission/access errors are inconsistent throughout the application. this causes problems now that files are beginning to be shared as links to thepond.
solution : replace with redirect to main page (non logged in users will get redirected once more to login page) + flash error message detailing access error
-
Attempting to download a datafile that is not yours for download (https://thepond.bioinfo.iric.ca/secure/datafiles/download/DFXXXXXXXX) -
Attempting to download a dataset that is not yours (https://thepond.bioinfo.iric.ca/secure/dataset/download/DSXXXXXXXX)
(todo: go over code and add extra endpoints that we might have missed)
Edited by Jonathan Séguin