add: better community role permission editor
This commit is contained in:
parent
8a9394a06a
commit
2102a8ea14
3 changed files with 97 additions and 3 deletions
|
@ -226,7 +226,7 @@ impl DataManager {
|
|||
let res = execute!(
|
||||
&conn,
|
||||
"UPDATE memberships SET role = $1 WHERE id = $2",
|
||||
params![&(new_role.bits() as i64), &(id as i64)]
|
||||
params![&(new_role.bits() as i32), &(id as i64)]
|
||||
);
|
||||
|
||||
if let Err(e) = res {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue