add: ability to edit community title through ui
add: finish README
This commit is contained in:
parent
7c9d5de535
commit
53cf75b53c
11 changed files with 203 additions and 55 deletions
|
@ -233,12 +233,10 @@ pub async fn settings_request(
|
|||
Err(e) => return Err(Html(render_error(e, &jar, &data, &Some(user)).await)),
|
||||
};
|
||||
|
||||
if user.id != community.owner {
|
||||
if !user.permissions.check(FinePermission::MANAGE_COMMUNITIES) {
|
||||
return Err(Html(
|
||||
render_error(Error::NotAllowed, &jar, &data, &None).await,
|
||||
));
|
||||
}
|
||||
if user.id != community.owner && !user.permissions.check(FinePermission::MANAGE_COMMUNITIES) {
|
||||
return Err(Html(
|
||||
render_error(Error::NotAllowed, &jar, &data, &None).await,
|
||||
));
|
||||
}
|
||||
|
||||
// init context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue