Added staff restrictions

@yeago Its not very flexible but I guess it works fine for what we want. What do you think?
Thats a lot of code that I just deleted and maybe you want to save it after the returns like it was before?