Fixed user rights bug
This commit is contained in:
1 parent
f4fca4d798
commit
a46bb23f19
1 file changed
+2
-2
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user