Added missing check to see if a user is allowed to post or reply a message

This commit is contained in:
Michiel Broek
2007-10-05 19:29:23 +00:00
parent 9eda6976f6
commit 44b2e83fe0
3 changed files with 15 additions and 3 deletions

View File

@@ -133,8 +133,18 @@ int Post_Allowed(void);
int Post_Allowed(void)
{
if (msgs.MsgKinds == RONLY) {
/* Message area is Readonly */
Enter(2);
/* Posting not allowed, this area is Read Only! */
pout(LIGHTRED, BLACK, (char *) Language(437));
Enter(1);
sleep(3);
return FALSE;
}
if (Access(exitinfo.Security, msgs.WRSec) == FALSE) {
Enter(2);
/* No Write access to area */
pout(LIGHTRED, BLACK, (char *) Language(453));
Enter(1);
sleep(3);
return FALSE;
}