Bugfix/authorized context

Those commits bugfix some problems when the user have access to only one context in a multi-context website