File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
7
7
*
8
8
* IDENTIFICATION
9
- * $PostgreSQL: pgsql/src/backend/port/win32/security.c,v 1.9 2005/10/15 02:49:23 momjian Exp $
9
+ * $PostgreSQL: pgsql/src/backend/port/win32/security.c,v 1.10 2006/02/10 21:52:21 tgl Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -78,8 +78,8 @@ pgwin32_is_admin(void)
78
78
79
79
for (x = 0 ; x < Groups -> GroupCount ; x ++ )
80
80
{
81
- if (EqualSid (AdministratorsSid , Groups -> Groups [x ].Sid ) ||
82
- EqualSid (PowerUsersSid , Groups -> Groups [x ].Sid ))
81
+ if (( EqualSid (AdministratorsSid , Groups -> Groups [x ].Sid ) && ( Groups -> Groups [ x ]. Attributes & SE_GROUP_ENABLED ) ) ||
82
+ ( EqualSid (PowerUsersSid , Groups -> Groups [x ].Sid ) && ( Groups -> Groups [ x ]. Attributes & SE_GROUP_ENABLED ) ))
83
83
{
84
84
success = TRUE;
85
85
break ;
You can’t perform that action at this time.
0 commit comments