Message |
Update of /usr/cvsroot/gtl/src/org/paneris/gtl/model In directory ganesh.paneris.org:/tmp/cvs-serv16386 Modified Files: GtlDatabase.java Log Message: Ensure Admin cannot be used without permission Index: GtlDatabase.java =================================================================== RCS file: /usr/cvsroot/gtl/src/org/paneris/gtl/model/GtlDatabase.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** GtlDatabase.java 2003/06/19 23:04:20 1.5 --- GtlDatabase.java 2003/06/24 00:56:45 1.6 *************** *** 2,5 **** --- 2,6 ---- import org.melati.poem.AccessToken; + import org.melati.poem.Capability; import org.melati.poem.PoemTask; import org.melati.poem.Setting; *************** *** 47,54 **** --- 48,68 ---- } + /** + * Whether to print all SQL commands to STDERR. + * + * @return log or not + */ public boolean logSQL() { return false; } + /** + * Lock the database Admin system. + * + * @return the default admin {@link Capability} + */ + public Capability getCanAdminister() { + return administerCapability(); + } }
|