scripts: access-portal: Fix incorrect bitmask checking for media roles
In Lua, 0
is a truthy value, which means not 0
is false
. Compare
the resulting value from bitwise AND with 0 instead of checking it with
if not
to ensure correctness.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
In Lua, 0
is a truthy value, which means not 0
is false
. Compare
the resulting value from bitwise AND with 0 instead of checking it with
if not
to ensure correctness.