Do you plan the same fixture of the access right management at the dhtmlxSpreadsheedt plugin for Joomla (and WP)?
If yes, when do you roughly expect the update? Where do you announce the update release? In this forum?
Unfortunately, the right to edit spreadsheet data is crucial for our registered members. This would bring your wonderful plugin to an absolute perfection. I really look forward to update the plugin and thank you for the superb work!
Hi,
thanks for your feedback.
We don’t have plans to implement admin panel for user access management.
So there is only way to configure access rights only in dhtmlxspreadsheet.php file.
thank you for your quick reply. Unfortunately, I do not observe any change. The access rights, that allow spreadsheet editing, were not extended to the group of registered members. The only change I can report is, that no spreadsheet is displayed at all.
I compared the previous version of the plugin with the recent update, that you attached to your reply. You will find a screen shot of the comparison performed with Meld. I couldn’t find relevant changes in the files, which is probably caused by my poor PHP knowledge I can’t find changes between the previous plugin version and your recent update, that are correlated to user rights. I don’t now where to look, to give a more precise description. Please give me a hint, so I can look more close on the problem.
Funny enough, but if I add your code snippet to debug the “$available_to” and the “$usergroups” in “spreadsheet_data.php” the table rendering is killed half way proceeding. It looks like, as if the procedure is not able to finish the rendering of the table. Firebug gives me the following debug protocol:
Just to give you the full picture, I added your debug snippet to “spreadsheet_data.php” as follows:
echo "<pre>";
print_r($available_to);
print_r($usergroups);
echo "</pre>";
if (!dhx_can($available_to, $usergroups))
$conn->set_read_only(true);
$conn->render();
// if (!dhx_can($available_to, $usergroups))
// $conn->set_read_only(true);
// $conn->render();
But never mind! I got the response on the GET request with Firebug and that is what counts. The array of “$available_to” and “$usergroups” looks like this
As far as I understand, the spreadsheet script only knows the user group “Super Users”. Does that mean, that I have to extend the definition of “$usergroups” somewhere in the code? If yes, where? Or am I completely wrong?
Hi,
$usergroups contains a list of user groups. In your case current user is only in group Super Users.
$available_to contains list of groups whos users can edit spreadsheet.
So script checks if current usergroups are allowed in $available_to and sets readonly mode if user don’t have permissions to edit ssheet.
It looks like it works correctly. isn’t it?
You are right, the script gets all the needed parameters. The reason why it still doesn’t work, is the case sensitivity in the definition of allowed users. In line 48 - 55 of “spreadsheet_data.php” you define the access rights.
Here you use capital letter. That was the reason, why the Joomla user could not get the set access rights. I changed the writing of the allowed users in the “$available_to” array and it works!