I am using alanning:roles to classify users. I have certain publications where only users with ‘admin’ roles have access to any data from publication.
If I early exit and
return nothing, I get an exception about
Error: Publish function can only return a Cursor or an array of Cursors
Any help will be much appreciated about how to early exit and handle the error display to the user??