add: apps rust sdk
This commit is contained in:
parent
f05074ffc5
commit
fe1e53c47a
11 changed files with 461 additions and 11 deletions
|
@ -193,7 +193,13 @@ macro_rules! user_banned {
|
|||
macro_rules! check_user_blocked_or_private {
|
||||
($user:expr, $other_user:ident, $data:ident, $jar:ident) => {
|
||||
// check is_deactivated
|
||||
if $other_user.is_deactivated {
|
||||
if ($user.is_none() && $other_user.is_deactivated)
|
||||
| !$user
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.permissions
|
||||
.check(tetratto_core::model::permissions::FinePermission::MANAGE_USERS)
|
||||
{
|
||||
return Err(Html(
|
||||
render_error(
|
||||
Error::GeneralNotFound("user".to_string()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue