Fixes: #1922 Added foreign key to user/manager
Fixes: #2670 Removed useless part from class_acl
Fixes: #2670 changed acl call in user