WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Allow role access to Horizontal scrolling announcement

[Resolved] Allow role access to Horizontal scrolling announcement

Viewing 2 replies - 1 through 2 (of 2 total)
  • shawnwyatt
    Member

    @shawnwyatt-1

    Never mind, found it. Using the logic that you instructed in another posting of a similar question, I edited horizontal-scrolling-announcement.php file of the plugin (line 302 to 306), from:

    function HSA_add_to_menu()
    {
    	add_options_page('Horizontal scrolling announcement', 'Horizontal Scrolling', 'manage_options', __FILE__, 'HSA_admin_options' );
    	add_options_page('Horizontal scrolling announcement', '', 'manage_options', "horizontal-scrolling-announcement/horizontal-scrolling-setting.php",'' );
    }

    to:

    function HSA_add_to_menu()
    {
    	add_options_page('Horizontal scrolling announcement', 'Horizontal Scrolling', 'publish_posts', __FILE__, 'HSA_admin_options' );
    	add_options_page('Horizontal scrolling announcement', '', 'publish_posts', "horizontal-scrolling-announcement/horizontal-scrolling-setting.php",'' );
    }

    The user role had publish post rights, so it seemed the obvious one to change. Note, I am using the Horizontal scrolling announcment plugin v6.2

    If you edit a plugin file directly then if that plugin is updated you lose your changes and your user role fix will have to be reapplied.

    Question: Can this fix be applied in a custom php file in the theme so it sticks through upgrades? Or is there an alternate way of upgrade-proofing user role fixes?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Allow role access to Horizontal scrolling announcement’ is closed to new replies.