now comparing login type without regard to string case
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Dec 2005 22:19:00 +0000 (22:19 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Dec 2005 22:19:00 +0000 (22:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2357 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_auth.c

index 3821cf1..85eaf9b 100644 (file)
@@ -115,11 +115,11 @@ int oilsAuthCheckLoginPerm(
        if(!(userObj && type)) return -1;
        oilsEvent* perm = NULL;
 
-       if(!strcmp(type, "opac")) {
+       if(!strcasecmp(type, "opac")) {
                char* permissions[] = { "OPAC_LOGIN" };
                perm = oilsUtilsCheckPerms( oilsFMGetObjectId( userObj ), -1, permissions, 1 );
 
-       } else if(!strcmp(type, "staff")) {
+       } else if(!strcasecmp(type, "staff")) {
                char* permissions[] = { "STAFF_LOGIN" };
                perm = oilsUtilsCheckPerms( oilsFMGetObjectId( userObj ), -1, permissions, 1 );
        }