complete PermissionAttributes

test not done yet
commit before adjustment of structure