Le 30/04/2012 16:21, Paul a écrit : > Chris, > > Many thanks, I'll see what I can do (after hours tonight.) Just > wondering if a perl expert could suggest the code to add a "condition" to > if ($sql =~ /;?\W?(UPDATE|DELETE|DROP|INSERT|SHOW|CREATE)\W/i) { > push @errors, {sqlerr => $1}; > } > > along the lines of " unless username='paul' "
Question to all = could it be a good idea to let superlibrarians execute dangerous SQLs like the one forbidden by the test ? Otherwise asked: could we add a unless permission eq 'superlibrarian' condition ? ( ie: "with great power comes great responsibility" -@spiderman uncle- ) -- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/