Change rights permissions checking
Merge branch 'master' of github.com:gerdkortemeyer/loncapa