$Log$
+ Revision 590.147 2002/03/12 22:17:20 ajc
+ * Give mailbox owners access to "who knows room" command
+
Revision 590.146 2002/03/12 21:08:03 nbryant
support color under Solaris curses
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
cmd=21,0,&.,&Help:
cmd=22,1,&.,&Aide,&Kill this room
cmd=23,1,&.,&Aide,&Edit this room
-cmd=24,1,&.,&Aide,&Who knows room
+cmd=24,0,&.,&Aide,&Who knows room
cmd=25,2,&.,&Aide,edit &User
cmd=26,2,&.,&Aide,&Validate new users
cmd=48,1,&.,&Aide,enter &Info file
struct cdbdata *cdbus;
getuser(&CC->usersupp, CC->curr_user);
- if (CtdlAccessCheck(ac_room_aide)) return;
+
+ /*
+ * This command is only allowed by aides, room aides,
+ * and room namespace owners
+ */
+ if (is_room_aide()
+ || (atol(CC->quickroom.QRname) == CC->usersupp.usernum) ) {
+ /* access granted */
+ }
+ else {
+ /* access denied */
+ cprintf("%d Higher access or room ownership required.\n",
+ ERROR + HIGHER_ACCESS_REQUIRED);
+ return;
+ }
cprintf("%d Who knows room:\n", LISTING_FOLLOWS);
cdb_rewind(CDB_USERSUPP);
serv_puts("WHOK");
serv_gets(buf);
if (buf[0] != '1') {
- pprintf("%s\n", &buf[5]);
+ pprintf("%s\n", &buf[4]);
return;
}
while (serv_gets(buf), strncmp(buf, "000", 3)) {