summaryrefslogtreecommitdiffstats
path: root/include/perm.h
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-14 23:52:34 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-14 23:52:34 +0800
commit41157b4d4a7c4549b31f88b8ba483ca12c355e48 (patch)
treebc8d57066c64ba04e5d34148fb8a3e0e105d4fec /include/perm.h
parent36e0dbc04095da5fca4cad9e48f2b07fb1e220c5 (diff)
downloadpttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar
pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.gz
pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.bz2
pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.lz
pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.xz
pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.zst
pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.zip
merge HAVE_PERM() into HasUserPerm()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/perm.h')
-rw-r--r--include/perm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/perm.h b/include/perm.h
index e129a991..03e5b432 100644
--- a/include/perm.h
+++ b/include/perm.h
@@ -52,8 +52,7 @@
#define PERM_FORWARD (PERM_BASIC) /* to do the forwarding */
#define PERM_INTERNET (PERM_LOGINOK) /* 身份認證過關的才能寄信到 Internet */
-#define HasUserPerm(x) ((x) ? cuser.userlevel & (x) : 1)
-#define HAVE_PERM(x) (cuser.userlevel&(x))
+#define HasUserPerm(x) (cuser.userlevel & (x))
#define PERM_HIDE(u) (u && (u)->userlevel & PERM_SYSOPHIDE)
#define IS_BOARD(bptr) ((bptr)->brdname[0] && \