|
Looking at the Database.java code could I modify the method below to check if the user has SELECT permission ? /** * Returns true if the user is allowed to execute the given stored procedure. */ public boolean canUserExecuteStoredProcedure(DatabaseQueryContext context, User user, String procedure_name) throws DatabaseException { // Currently you can only execute a procedure if you are a member of the // secure access priv group. return userHasSecureAccess(context, user); } /** * Returns true if the user is allowed to execute the given stored procedure. */ public boolean canUserExecuteStoredProcedure(DatabaseQueryContext context, User user, String procedure_name) throws DatabaseException { if (userHasSchemaGrant(context, user, table.getSchema(), Privileges.PROCEDURE_EXECUTE_PRIVS)) { return true; } // Currently you can only execute a procedure if you are a member of the // secure access priv group. return userHasSecureAccess(context, user); } On 30/06/2007, at 10:25 AM, Tobias Downer wrote:
|