fix scm session rights check and redirect
docman: fix missing )