Created
October 28, 2014 11:28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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