• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Template modification hasPermission problem

Affected version
2.0.0 Beta 1

AndyB

Well-known member
#1
Appears when I try to use "userAgent" as opposed to "userAgentGroup" the hasPermission is never matched in the Template modification.

This works, but I would rather use "userAgent" if possible.

1504896324070.png

Yes I'm changing the Permission group accordingly.

1504896418411.png
 

AndyB

Well-known member
#2
I ran into this issue again, the symptom is the permission does not work if you use the same ID for both the Interface group ID and also Permission group.

Please provide and error message if a developer tries to use the same ID fro both Interface group ID and Permission group.
 
Last edited:

Chris D

XenForo developer
Staff member
#3
I can't reproduce anything that you're reporting here.

I've done the following. Created a permission interface group with an ID of "test". Created a permission with an ID of "test", set the group ID to "test" and set the interface group to the one created previously "test".

No errors here, and there shouldn't be. None of this is invalid.

I've then created a simple template modification in a similar way:

1505811635592.png

Which saves correctly:

1505811675960.png

And displays correctly:

1505811706042.png

So, something else is going on here. We'd need more detailed reproduction steps to be able to go any further,
 

AndyB

Well-known member
#4
Thank you for looking into this Chris. I have noticed it works fine to have the Interface group ID and Permission group ID as the same name, that is until you disable the add-on and then re-enable the add-on, at this point the Template modification no longer works.
 

Mike

XenForo developer
Staff member
#5
Please confirm whether this is still an issue in beta 3. There are some potentially related fixes.
 

[xFv]

Previously Cylent1
#7
Hello @Chris D !
So I followed along with this permission test, but I see its not working at all in Microsoft Edge browser.
 
Last edited:

Chris D

XenForo developer
Staff member
#8
What specifically is not working, in what way is it not working (an error?), and what are the steps to reproduce it?