[AddonsLab] Conversation Permissions

xF2 Add-on [AddonsLab] Conversation Permissions 1.5.2

No permission to download
The release fixes the following PHP error:

Code:
ErrorException: Template error: [E_WARNING] Attempt to read property "is_admin" on null
src/addons/AddonsLab/ConversationPermissions/XF/Entity/ConversationMaster.php:57

It seems the error would happen if a participant of the conversation is deleted from the database.

Thank you!
We have updated this permission to allow not only admins but also moderators of the board.

This version also fixes a bug with checking the Conversation Quota of a user who starts the conversation.
The release fixes the error that occurs when a user leaves a conversation:

An exception occurred: [TypeError] Argument 1 passed to AddonsLab\ConversationPermissions\XF\Entity\ConversationMaster::AddonsLab\ConversationPermissions\XF\Entity{closure}() must be an instance of XF\Entity\ConversationUser, null given in src/addons/AddonsLab/ConversationPermissions/XF/Entity/ConversationMaster.php on line 18
In this version, we have implemented a new Yes/No permission to allow contacting site administrators even if the number of posts is not enough to contact other users.

This permission is enabled by default for all existing usergroups.

Attachments

  • 1587396244509.png
    1587396244509.png
    73 KB · Views: 39
This version removes the files belonging to [AL] Core package and adds requirement for the add-on https://xenforo.com/community/resources/al-core-package.7382/ Install the upgrade if you see errors from this add-on in the admin panel “files with unexpected contents”.
This is a bug-fix version that restores the message telling the users why exactly they can't start a conversation. Now a message will be shown stating how many posts exactly they should have to be able to start a conversation.
In this version we have implemented a new Yes/No permission to reply in conversations.

This permission is enabled by default for all existing usergroups.​
Attachments

This is the next update implementing a permission for usergroups to override recipient quota.

xenforo_com_community_attachments_conversation_permissions_png_161761__.png
In this release, we have implemented two new permissions. Now you can set the quota on the overall number of conversations users can have. This includes both sent and received conversations. If a user exceeds this limit, they will not be able to start a conversation and other users will not be able to send a conversation to them.

Another permission defines the minimum number of posts users should have to read their conversations. If users have fewer posts, they can still see the list of conversations, get notifications about new conversations and replies, but they will not be able to see the conversation itself.

We also modified the product to show detailed information about the error (e.g. how many posts they need to start a conversation) instead of just showing a general error message.