• Resolved Rustamveer Singh

    (@rustamveer)


    Hi

    I have set up assigned permission to access wpDataTable to a custom user role. For example, when a user with a custom user-role “rag_admin” login then that user can only access wpDataTable. So we have added a condition if the page is equal to wpDataTable then add “manage_options”. Everything is working okay just not able to save the tables.

    Getting Error
    There was an error while trying to save the table! parsererror

    It is happening due to some permission glitch.



    	if (isset($_GET['page'])) {
    		$page = $_GET['page'];
    		
    		// if the page has "wpdatatables-"
    		if (strpos($page, 'wpdatatables-') === 0) {
    			if (in_array('rag_admin', $current_user->roles)) {
    				$allcaps['manage_options'] = true;
    			}
    		}
    	}
    
    	return $allcaps;
    
    hook:
    add_filter('user_has_cap', 'myuser_capabilities', 10, 3);
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hello,
    For this specific issue it will be a more complex troubleshooting process,
    we will probably have to involve our developers to see if they can possibly advise what this might be,
    and we won’t be able to help you in full details on this public Post,
    so if you can please open a ticket on our main Support platform here,

    ?and one of our Agents will respond as quickly as possible.

    Thank you for understanding. 

    Kind regards.

    • This reply was modified 1 year, 6 months ago by wpDataTables.
    Thread Starter Rustamveer Singh

    (@rustamveer)

    Hi

    Yesterday, I had created a ticket privately, however, did not get any response, thanks
    https://tmsplugins.ticksy.com/ticket/3486346/

    Plugin Author wpDataTables

    (@wpdatatables)

    Hello,
    We apologize for that delay from our main Support Team,
    They have now responded and they will keep following up as quickly as possible.
    Apologies for the waiting time once again, thank you for your patience.
    We can also see you have confirmed you are a Premium user on their end,
    so for the future,
    please note that this Forum is only for the free/Lite wpDataTables.
    For any Premium users or any questions about the Premium version of the Plugin, please keep opening the tickets on our Main Support.
    Thank you for understanding.

    Thread Starter Rustamveer Singh

    (@rustamveer)

    Thank you so much!

    Plugin Author wpDataTables

    (@wpdatatables)

    Hello,
    Just a small follow up.
    No problem, we are happy to help.
    We can see our Main Support is following up,
    So they will proceed from here.
    Please don’t hesitate to open new Posts here if it is about the Lite version,
    for any Premium version questions,
    you can keep opening tickets on the Premium Support.
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom userrole not able to save table’ is closed to new replies.