Style Permissions

Style Permissions 1.0.6

No permission to download

truonglv

Well-known member
Nobita.Kun submitted a new resource:

Style Permissions - Allows you to choose which usergroups/individual usergroups can view/access a style

Description: Allows you to choose which usergroups/individual usergroups can view/access a style

How to install:
  • Upload all file to host, overridden if asked
  • Import `addon-nobita_stylePermissions` xml file in tab install AddOn
  • Go to your style and config ;)

Read more about this resource...
 
Nobita.Kun submitted a new resource:

Style Permissions - Allows you to choose which usergroups/individual usergroups can view/access a style



Read more about this resource...

Good to see this finally being made, nice work.

However, getting this error when I try to save the usergroups to view style.

Mysqli prepare error: Unknown column 'style_permissions' in 'field list'

Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 632
Zend_Db_Adapter_Abstract->update() in XenForo/DataWriter.php at line 1628
XenForo_DataWriter->_update() in XenForo/DataWriter.php at line 1597
XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1393
XenForo_DataWriter->save() in XenForo/ControllerAdmin/Style.php at line 95
XenForo_ControllerAdmin_Style->actionSave() in Nobita/StylePermissions/ControllerAdmin/Style.php at line 34
Nobita_StylePermissions_ControllerAdmin_Style->actionSave() in XenForo/FrontController.php at line 337
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/bbsmiley/public_html/admin.php at line 13
 
Last edited:
Another issue, a permission issue.

I just tried linking to the style ID and tested it on a usergroup that shouldn't be able to view the style, so in short, it's not respecting permission and allowing users to input a style ID link in the browser and able to choose/select restricted styles if they get the style ID correctly.

Code:
http://www.yourdomain.com/misc/style?style_id=xx

Untitled-4.webp
 
Last edited:
Once this is working as expected this will be huge for a lot of people, many folks have asked for this in the past so well done.
 
Does the style have to be set to selectable for those you allow to see it? Or do you leave it unselectable and just give the usergoup or name permission?I just want to make sure before I try it. I don't want to make the style selectable then everyone can see it if they wish.
 
Back
Top Bottom