Add TS permissions and check for login in views.
Merge branch 'ts3_fix' into develop