RWHO: use the api function to check for aide access.
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 1 Feb 2012 22:39:51 +0000 (23:39 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 1 Feb 2012 22:39:51 +0000 (23:39 +0100)
citadel/modules/rwho/serv_rwho.c

index 23fec4bbf8b1a071f20d51c8152bb8332b14a53f..e509bab133d2770e149bdf48e194ee7b589051ad 100644 (file)
@@ -87,7 +87,7 @@ void cmd_rwho(char *argbuf) {
                return;
        }
        
-       aide = CC->user.axlevel >= AxAideU;
+       aide = CtdlAccessCheck(ac_aide);
        cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress() );
        
        for (i=0; i<nContexts; i++)