Fixed user rights bug

This commit is contained in:
lukeIam committed 2013-12-22 20:14:57 +01:00
1 parent f4fca4d798
commit a46bb23f19
1 file changed
+2 -2
+2 -2
View File
@@ -678,9 +678,9 @@ namespace Vocaluxe.Base.Server
} }
//Hide TR_USERROLE_GUEST and TR_USERROLE_NORMAL //Hide TR_USERROLE_GUEST and TR_USERROLE_NORMAL
const EUserRole mask = (EUserRole.TR_USERROLE_GUEST | EUserRole.TR_USERROLE_NORMAL); //const EUserRole mask = (EUserRole.TR_USERROLE_GUEST | EUserRole.TR_USERROLE_NORMAL);
return (int)(profile.UserRole & ~mask); return (int)(profile.UserRole);
} }
private static void _SetUserRole(int profileId, int userRole) private static void _SetUserRole(int profileId, int userRole)