diff --git a/procedures/retrieveEntityACL.sql b/procedures/retrieveEntityACL.sql index 038b7095ea2f95cc13df3d66c8ac2a22102fade8..e7833d24199165755bac27468aafc2c6dd8c3f80 100644 --- a/procedures/retrieveEntityACL.sql +++ b/procedures/retrieveEntityACL.sql @@ -39,7 +39,7 @@ CREATE PROCEDURE db_5_0.retrieveEntityACL( IN EntityID INT UNSIGNED) retrieveEntityACLBody: BEGIN - SELECT a.acl AS ACL FROM entity_acl AS a JOIN entities AS e ON (e.acl = a.id) JOIN entity_ids as eids ON (e.id = eids.internal_id WHERE eids.id = EntityID; + SELECT a.acl AS ACL FROM entity_acl AS a JOIN entities AS e ON (e.acl = a.id) JOIN entity_ids as eids ON (e.id = eids.internal_id) WHERE eids.id = EntityID; END; //