Jump to content


[solved] Permissions


  • You cannot reply to this topic
15 replies to this topic

#1 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 15 November 2006 - 06:39 AM

Hi, me again.
Before yesterday i had used EtoGal only on Etomite, where was 1 admin and that was all. Since now I use EtoGal on Etomite, where are more users.
I don't understand access permissions at all, because it wants on me some groups of users, groups of documents, etc.
I use 2 kinds of users - Administrators and NoConfig (who can all, except editing/deleting snippets/templates, deleting users or destroying configuration)

How to allow NoConfig person (easily) to manage pictures?

Thank you for your great work :eto:

Edited by churchyard, 16 November 2006 - 06:40 PM.


#2 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 15 November 2006 - 11:50 AM

easily? - make them all administrators :(

using the etomite access permissions is described at http://docs.etomite.com/administration-use...ns-working.html

basically (from memory, so I may have missed a step):
  • you need to put your users in a user group (you may have already done this)
  • create a document group for all the galleries
  • edit all the gallery pages and add them to the document group
  • give your user group rights over the document group


#3 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 15 November 2006 - 07:01 PM

i tryed to do this, but when I've created a group and switch it on, I cannot acces any document

is there a way by editing snippet code... ?

Edited by churchyard, 15 November 2006 - 07:08 PM.


#4 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 15 November 2006 - 07:50 PM

As far as I am aware Etogal works if you have the permissions set up correctly.

Can you describe exactly how you have set up the users, user groups, document groups and documents, please, and then someone may be able to help point out what's wrong.

I don't have time to revisit the permissions model in Etogal at the moment, sorry.

#5 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 15 November 2006 - 09:09 PM

1) i have created usergroup "all"
2) i have created documentgroup "all"
3) i have combined them
4) i pushed everybody in all group
5) i tryed to make some document "all" -> I can edit no document
6) everything back

#6 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 15 November 2006 - 09:28 PM

View Postchurchyard, on Nov 15 2006, 09:09 PM, said:

1) i have created usergroup "all"
2) i have created documentgroup "all"
3) i have combined them
4) i pushed everybody in all group
5) i tryed to make some document "all" -> I can edit no document
6) everything back

After some edits to permissions you need to logout of the manager and log back in, so after step 4 try logging out of the manager, logging back in as admin, then you should be able to edit the documents and set the group they belong to.

(... can someone add this to the etomite documentation please? I don't think I have access any longer.)

#7 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 15 November 2006 - 09:40 PM

it has happened automaticly.
may be, in 4) don't pushing admins in that group?
can it help?

#8 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 15 November 2006 - 09:43 PM

View Postmikef, on Nov 15 2006, 09:28 PM, said:

(... can someone add this to the etomite documentation please? I don't think I have access any longer.)
Done :)

#9 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 15 November 2006 - 09:45 PM

it is not good idea, I have 70 docu. I didn't make PLANING (http://docs.etomite....ns-working.html)

I cannot use permissions, i want to edit etogal to allow NoConfig to amnage pictures, is there a way?

#10 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 15 November 2006 - 09:48 PM

View Postchurchyard, on Nov 15 2006, 09:40 PM, said:

it has happened automaticly.
may be, in 4) don't pushing admins in that group?
can it help?
I'm not sure what you mean by 'it happened automatically' - what happened?

I wouldn't put admins into groups, but thats because I wouldn't expect putting them into groups to have any effect. (If it did, you could end up unable to do anything with your site if you got the setup wrong).

You just need to logout after step 4 and then log back in, after which you should be able to edit the documents and put them into the document group.

#11 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 15 November 2006 - 10:43 PM

View Postmikef, on Nov 15 2006, 11:48 PM, said:

I'm not sure what you mean by 'it happened automatically' - what happened?
(...)
You just need to logout after step 4 and then...
That was happened automaticly

Again my question: Is there a way to allow noAdmin to manage pictures without this huge thing?
I don't want to change every docu now.
The person, who is not admin can edit every docu. He is not admin, only because I don't like he to destroy configuration...

#12 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 15 November 2006 - 10:51 PM

View Postchurchyard, on Nov 15 2006, 10:43 PM, said:

That was happened automaticly

Again my question: Is there a way to allow noAdmin to manage pictures without this huge thing?
I don't want to change every docu now.
The person, who is not admin can edit every docu. He is not admin, only because I don't like he to destroy configuration...
not without a change to the admin code. It works as Frank designed it - I will get round to changing it someday (there are other situations in which it is tedious to use) but at present I have more urgent stuff to do for customers, and for my own sites.

#13 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 15 November 2006 - 11:00 PM

If you want to try changing the code, you'll need to edit the checkPermissions() function;
its not well commented, but is probably fairly easy to do.

#14 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 16 November 2006 - 07:10 AM

I don't wont to crash everything, so last question before some editi:
$rs2=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='1'");
	if(mysql_num_rows($rs2)) {
TO
$rs2=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='1'");
	$rs3=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='2'");
	if(mysql_num_rows($rs2 || $rs3)) {

Edited by churchyard, 16 November 2006 - 07:10 AM.


#15 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 16 November 2006 - 09:12 AM

View Postchurchyard, on Nov 16 2006, 07:10 AM, said:

I don't wont to crash everything, so last question before some editi:
$rs2=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='1'");
	if(mysql_num_rows($rs2)) {
TO
$rs2=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='1'");
	$rs3=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='2'");
	if(mysql_num_rows($rs2 || $rs3)) {
Won't work. try:
$rs2=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='1'");
	if(mysql_num_rows($rs2)) {
TO
$rs2=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='1'");
	$rs3=$etomite->dbQuery("SELECT * FROM " . $etomite->db . "user_attributes WHERE id='" . $userdetails['id'] . "' AND role='2'");
	if(mysql_num_rows($rs2) || mysql_num_rows($rs3)) {


#16 churchyard

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 16 November 2006 - 09:17 AM

thank you!
works perpect, have you ever heared, you're god?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users