aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/auth.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-07 17:06:45 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-07 17:06:45 -0800
commit3654fcfca716c7994bd166436cfb57b6b65d7c85 (patch)
tree7d4613f20b3f7347dae324fd7045e9209802b1da /rust/src/auth.rs
parent39aba8b86cd4cec01e26eb08f74b5da22f4fe9af (diff)
downloadfatcat-3654fcfca716c7994bd166436cfb57b6b65d7c85.tar.gz
fatcat-3654fcfca716c7994bd166436cfb57b6b65d7c85.zip
only superusers get auto-magic-privs
Diffstat (limited to 'rust/src/auth.rs')
-rw-r--r--rust/src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/auth.rs b/rust/src/auth.rs
index 0160d2e8..8894e33b 100644
--- a/rust/src/auth.rs
+++ b/rust/src/auth.rs
@@ -40,7 +40,7 @@ impl AuthContext {
// if account is disabled, only allow public role
return role == FatcatRole::Public;
}
- if self.editor_row.is_admin {
+ if self.editor_row.is_superuser {
return true;
}
match role {