diff options
| author | Rapptz <[email protected]> | 2016-09-10 16:11:52 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-09-10 16:11:52 -0400 |
| commit | 26f5bcd725894926d0d839514cc1b69556f505a6 (patch) | |
| tree | c998971fb22e1c5725220f126c914a65df28e97f /discord/server.py | |
| parent | Fix bug that disallowed ServerRegion from being used in edit_server. (diff) | |
| download | discord.py-26f5bcd725894926d0d839514cc1b69556f505a6.tar.xz discord.py-26f5bcd725894926d0d839514cc1b69556f505a6.zip | |
Fix bug when permission overwrites could be applied out of order.
The bug was due to the fact that the way overwrites work is by doing
a loop of all the values and then applying deny first and then allow.
That way the overwrite is defined if role A and role B deny a
permission but role C allows it (and said member has A, B, C roles)
then the resolution should allow it rather than deny it regardless of
the order of the data it is received in.
Diffstat (limited to 'discord/server.py')
0 files changed, 0 insertions, 0 deletions