Skip to content

Commit

Permalink
Also check that the current user has the right to upload file attachm…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
Cyperghost committed Jun 17, 2024
1 parent b171e96 commit ee34e63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ private function canAddUser(): bool
private function canEditUser(UserProfile $userProfile): bool
{
return WCF::getSession()->getPermission('admin.user.canEditUser')
&& UserGroup::isAccessibleGroup($userProfile->getGroupIDs());
&& UserGroup::isAccessibleGroup($userProfile->getGroupIDs())
&& WCF::getSession()->getPermission('user.signature.attachment.canUpload');
}
}

0 comments on commit ee34e63

Please sign in to comment.