Fixes sec department access. I hope.
Merge pull request #3209 from fleure/secfixtwo

Fixes sec department access. I hope.