Skip to content

Commit

Permalink
fix autorisation de suppression de message
Browse files Browse the repository at this point in the history
retour sur 44c0f2a
  • Loading branch information
brunob committed May 19, 2021
1 parent 33db13a commit 327a9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seenthis_autoriser.php
Expand Up @@ -40,7 +40,7 @@ function autoriser_me_supprimer_dist($faire, $quoi, $id, $qui, $opts) {
if ($qui['id_auteur'] == $me['id_auteur']) {
return true;
}
if ($row['id_parent'] > 0) {
if ($me['id_parent'] > 0) {
if ($id_auteur = sql_getfetsel('id_auteur', 'spip_me', 'id_me='.intval($me['id_parent'])) and $qui['id_auteur'] == $id_auteur) {
return true;
}
Expand Down

0 comments on commit 327a9a2

Please sign in to comment.