MyBB Community Forums

Full Version: [split] DVZ Shoutbox - delete own shout - bug ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Found a buy i think.

If i enable the option:
Quote:Group permissions: Moderation of own shouts
Users groups whose members can edit and delete their own shouts.
And set it to all groups, the user can edit his shout, but not delete it. 
It first says: "Do you want to delete the message?", if you press ok, another window appears, telling you: "You do not have permissions to perform this action".

I tested it with a regular user account.

See gif: https://i.gyazo.com/940a5b3c4fa7658722b8...81153a.gif
(2016-06-26, 12:48 PM)thelovelyone Wrote: [ -> ]Found a buy i think.

If i enable the option:
Quote:Group permissions: Moderation of own shouts
Users groups whose members can edit and delete their own shouts.
And set it to all groups, the user can edit his shout, but not delete it.
It first says: "Do you want to delete the message?", if you press ok, another window appears, telling you: "You do not have permissions to perform this action".

I tested it with a regular user account.

See gif: https://i.gyazo.com/940a5b3c4fa7658722b8...81153a.gif

Yes, it's a bug - thanks for sharing; it will be fixed in the next release.
Meanwhile you can apply a fix manually by changing line 1257 in inc/plugins/dvz_shoutbox.php:
$data = self::get($shoutId);
to:
$data = self::get($data);
Thanks for the quick fix. Applied and works.