Skip to content

Instantly share code, notes, and snippets.

@weswit-team
Created October 28, 2014 11:28
public void notifyNewTables(java.lang.String user, java.lang.String sessionID, TableInfo[] tables) throws CreditsException {
for (int i=0; i<tables.length; i++) {
String[] items = this.getItems(user, tables[i].getId());
if (!AuthorizationRequest.canUserSeeItems(user, items)) {
throw new CreditsException(-1, "User not authorized", "You are not authorized to see this item");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment