Forum OpenACS Q&A: Revoked permissions for Main Site
Is there a quick way to get it back or is it quicker to reinstall?
PS Could someone please say 'ha weve all done that in our time!'
select acs_permission__grant_permission(:object_id, :party_id, :privilege);party_id in this case is -1, priv is read, and you can get the object_id for main site via
select object_id from site_nodes where parent_id is null;(it's 2565 on the installs I have done lately).
I had just found the acs_permission function call in the Developers Guide and was wondering how to get the parameters when your message arrived. Nice timing.
As a newbie I find the hardest part is finding my way around the db and how the whole thing hangs together. The docs are good but I find they make some assumptions when it comes to the db (or I'm just being thick - or I'm reading the wrong docs?).
Onward and upwards.
I logged into my database by going to the command line and typing:
The sql that I used (thanks to the docs above)
select acs_permission__grant_permission(2087, -1, 'read');
notice the lack of : and the single quote around read...
Here is my bug posting for this issue:
P.s it would be valuable to have a readble explantion of the beast anyway ( I mean the permission system ) So if there is anybody out there that understands both the groups, and the permissions system ( as they create the greatest confusion), please try to create a document that translates technotalk into plain English, and use some real life examples to give less geekminded people someting to chew on. Right now these 2 parts of OpenACS are a bit like 'Russian Roulette". You never know what will happen. I have no problem playing around and spending hours learning the system, but if changing 1 sylable in the sytem means I no longer have access, we do have a problem. Even having a short guide on how to unlock woudl help many first time users, and help make feel peopel at ease using OpneACS, as I gather that's what why the system is build in the first place.