forked from jmug/stoatchat
fix: switch to new permissions enum
This commit is contained in:
@@ -44,9 +44,9 @@ pub async fn req(
|
||||
let channel = target.as_channel(db).await?;
|
||||
if !perms(&user)
|
||||
.channel(&channel)
|
||||
.calc_channel(db)
|
||||
.calc(db)
|
||||
.await
|
||||
.get_view()
|
||||
.can_view_channel()
|
||||
{
|
||||
return Err(Error::NotFound);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user