finish work on department permissions

department is now ready to use.