• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Account Details: "Articles author name" and "About article author" inputs are hidden when user reaches their max articles per user count.

Bob

Developer
Staff member
AMS Version
AMS 2.3.11 and older
XenForo Version
XF 2.3
PHP Version
N/A
Database & Version
N/A
Are there any errors being throw?
No
As per title, if you set the permission "Max articles per user" and the user reaches that Max amount, the Account Details inputs for "Articles author name" and "About article author" are hidden due to the aggressive nature of the permissions check canAddAmsArticle() in the XF User Entity being called by the TM to determine whether to display the inputs or not.

I've changed the TM to no longer call the aggressive canAddAmsArticle() function and instead only check to see if the user has the AMS Article permission Create articles via $xf.visitor.hasAmsArticlePermission('add')

This makes the inputs available even IF the user has reached their Max articles count.
 
Back
Top