=== modified file 'resources/sql/div.sql' --- resources/sql/div.sql 2014-10-13 10:23:17 +0000 +++ resources/sql/div.sql 2014-11-27 15:47:19 +0000 @@ -103,6 +103,13 @@ where ura.authority = 'ALL' ); +-- User roles with authority + +select ur.userroleid, ur.name +from userrole ur +inner join userroleauthorities ura on ur.userroleid=ura.userroleid +where ura.authority = 'ALL'; + -- Turn longitude/latitude around for organisationunit coordinates (adjust the like clause) update organisationunit set coordinates=regexp_replace(coordinates,'\[(.+?\..+?),(.+?\..+?)\]','[\2,\1]')