Finishes the implementatin for user permissions

Now this feature is complete