[stable-2] Backport from main to stable-2 (#287)

* Update CONTRIBUTORS file (#278)

(cherry picked from commit cbdf51234a)

* Honor the set_default_role_all parameter (#282)

The set_default_role_all parameter is documented, but does nothing. This PR fixes this.

(cherry picked from commit f547b66d35)

* Add a changelog fragment to PR 282 (#283)

(cherry picked from commit 952e1666d8)

Co-authored-by: Benoit Garret <benoit.garret_github@gadz.org>
This commit is contained in:
Andrew Klychkov 2022-02-16 13:11:55 +03:00 committed by GitHub
parent 9d9ea46603
commit 8b2c418538
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View file

@ -770,7 +770,8 @@ class Role():
self.cursor.execute(*self.q_builder.role_grant(user))
self.role_impl.set_default_role_all(user)
if set_default_role_all:
self.role_impl.set_default_role_all(user)
changed = True