Implement StaffPermissionLogic and its test but tests are not passed yet.