Add plugin hook in get_access_sql_suffix() #3047
Tweaks to get_access_sql_suffix based on feedback from @cash.
Removed get_access_restriction_sql.
Added a basic unit test for the new plugin hook. #3047
Added more tests for the get_access_sql_suffix plugin hook. #3047
Better implentation of access:get_sql_suffix hook #3047
Replacing hook service in get_access_sql_suffix unit tests to prevent
plugins from breaking future tests. #3047
changed to using an options array and rewrote unit tests to focus on just the get access sql function
Merge pull request #5692 from cash/pr-5521

Generalizes the function for getting access sql, adds a plugin hook, and adds unit tests