diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-19 13:46:57 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-19 13:46:57 +0800 |
commit | 8a63959c47d4f26fe3017c9518ce26f798800edc (patch) | |
tree | 5c02289c4bf2d171b9241e0443f238f29a7ed544 /mbbsd/register.c | |
parent | 7e7780dcec5fcd883a7212211f789cbaaadd5853 (diff) | |
download | pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.tar pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.tar.gz pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.tar.bz2 pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.tar.lz pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.tar.xz pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.tar.zst pttbbs-8a63959c47d4f26fe3017c9518ce26f798800edc.zip |
- change GUEST rule to checking PERM_BASIC.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4203 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 7c21cd49..0646da8d 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -732,10 +732,15 @@ check_register(void) { char fn[PATHLEN]; - if (HasUserPerm(PERM_LOGINOK)) return; + if (!HasUserPerm(PERM_BASIC)) + { + // 基本權限被拔應該是要讓他不能註冊用。 + return; + } + /* * 避免使用者被退回註冊單後,在知道退回的原因之前, * 又送出一次註冊單。 |