Revert "Bug fixing : get_user_permissions SQL Fixing"
authorJoshua Ferraro <jmf@liblime.com>
Mon, 9 Jun 2008 14:53:23 +0000 (09:53 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 9 Jun 2008 14:53:23 +0000 (09:53 -0500)
From Galen: because code is part of the join, there is in fact no ambiguity

This reverts commit 3a05ae40f6d03a8399e4653da1761f5dde7e23ea.

C4/Auth.pm

index 61711d9..3556336 100755 (executable)
@@ -1263,7 +1263,7 @@ sub get_user_subpermissions {
     my $userid = shift;
 
     my $dbh = C4::Context->dbh;
-    my $sth = $dbh->prepare("SELECT flag, permissions.code
+    my $sth = $dbh->prepare("SELECT flag, code
                              FROM user_permissions
                              JOIN permissions USING (module_bit, code)
                              JOIN userflags ON (module_bit = bit)