[AddonsLab] Conversation Permissions

[AddonsLab] Conversation Permissions 1.6.2

No permission to download
  • ErrorException: Template error: [E_WARNING] Attempt to read property "is_moderator" on null
  • src/addons/AddonsLab/ConversationPermissions/XF/Entity/ConversationMaster.php:57
 
  • ErrorException: Template error: [E_WARNING] Attempt to read property "is_admin" on null
  • src/addons/AddonsLab/ConversationPermissions/XF/Entity/ConversationMaster.php:57
 
Could not process AddonsLab-ConversationPermissions-1.5.2.zip: The following requirements for [AL] Conversation Permissions were not met: [AL] Conversation Permissions requires [AL] Core Package 1.0.7+.
 
Could not process AddonsLab-ConversationPermissions-1.5.2.zip: The following requirements for [AL] Conversation Permissions were not met: [AL] Conversation Permissions requires [AL] Core Package 1.0.7+.

 
Seems to be a missing phrase:

Screenshot 2024-09-26 at 13.11.32.webp

Preliminary test are also showing users with permissions to do so cannot send DM to staff. This user correctly gets the above Oops when attempting to send to another users more than 1, but incorrectly also gets it when sending to mod.

This was permissions

Screenshot 2024-09-26 at 13.15.24.webp
 
AddonsLab updated [AddonsLab] Conversation Permissions with a new update entry:

Bug-fix: missing phrase on XenForo 2.3.x

Bug-fix: missing phrase on XenForo 2.3.x


Read the rest of this update entry...
 
This is a great addon. I have a suggestion:

Because users may have a limited quota, it’s important for them to manage their DMs so it would be good if they could export them as an archive begore deleting to make room for more,
 
This is a great addon. I have a suggestion:

Because users may have a limited quota, it’s important for them to manage their DMs so it would be good if they could export them as an archive begore deleting to make room for more,
Paid by @AndyB
XF 2.0, 2.1, 2.2

XF 2.3
 
Two things:

1. The quota of 0 seems to act like unlimited. ie the user can send direct messages (and there is not the usual text they get when a quota).

2. If a user has a quota of 2 and and permission to contact admin:


Screenshot 2024-10-06 at 14.31.37.webp
Screenshot 2024-10-06 at 14.41.16.webp

If they have used up the quota of 2, they are unable to send message to an admin in spite of the permission and get this:

Screenshot 2024-10-06 at 14.33.00.webp
 
Last edited:
1. The quota of 0 seems to act like unlimited. ie the user can send direct messages (and there is not the usual text they get when a quota).

That's the initial design decision, as a quota of 0 would technically mean not allowing users having any conversations at all. I see it could have some usage in combination with permission to contact admins - users with quota set to 0 would only be able to contact admins only. If that's the specific use case you have, we can apply a fix.

If they have used up the quota of 2, they are unable to send message to an admin in spite of the permission and get this:
The fix for this is released now.

Because users may have a limited quota, it’s important for them to manage their DMs so it would be good if they could export them as an archive begore deleting to make room for more,

I am afraid this is out of scope of this add-on.

Thank you!
 
I see it could have some usage in combination with permission to contact admins - users with quota set to 0 would only be able to contact admins only. If that's the specific use case you have, we can apply a fix
Yes that is exactly what I was thinking
 
I seem to be getting this error when test a user with 2 out of quota of 5 messages and they try to send a 3rd:

Your content can not be submitted. This could be for various reasons. Please contact an administrator if you are unsure why this might be.

The recipient is definitely able to receive messages, all minimum post counts are set to 0.

This is with 1.6.2 on 2.3
 
Maybe you can check this together with XON?

#0 src/XF/Mvc/Entity/AbstractCollection.php(193): XF\Mvc\Entity\AbstractCollection->XF\Mvc\Entity\{closure}(NULL, 2071)
#1 src/XF/Mvc/Entity/AbstractCollection.php(238): XF\Mvc\Entity\AbstractCollection->pluck(Object(Closure), 1)
#2 src/addons/AddonsLab/ConversationPermissions/Service/QuotaCheckerService.php(14): XF\Mvc\Entity\AbstractCollection->pluckNamed('User')
#3 src/addons/AddonsLab/ConversationPermissions/XF/Entity/ConversationMaster.php(54): AddonsLab\ConversationPermissions\Service\QuotaCheckerService->isConversationWithAdminOrModerator(Object(SV\ConversationEssentials\XF\Entity\ConversationMaster))
#4 src/addons/AddonsLab/ConversationPermissions/XF/Entity/ConversationMaster.php(20): AddonsLab\ConversationPermissions\XF\Entity\ConversationMaster->isWithAnAdminOrModerator()
#5 src/addons/SV/ConversationImprovements/XF/Entity/ConversationMaster.php(57): AddonsLab\ConversationPermissions\XF\Entity\ConversationMaster->canReply()
#6 src/addons/SV/ConversationEssentials/XF/Entity/ConversationMaster.php(435): SV\ConversationImprovements\XF\Entity\ConversationMaster->canReply()
#7 src/XF/Template/Templater.php(1283): SV\ConversationEssentials\XF\Entity\ConversationMaster->canReply()
 
Back
Top Bottom