Added a view-only privilege to all agreements and strengthened privilege checks.
Added the pagination above the agreements and alarms tables.