1
rohitsap
New To Xoops - Use permissions Help needed - Urgent
  • 2006/2/20 11:52

  • rohitsap

  • Just popping in

  • Posts: 3

  • Since: 2006/2/20


Hi!

Apologies if answer to my query already exists on the forum. I have searched for a couple of hours and read many posts but still not clear. Need to have the site up in a couple of days.
Therefore the urgency.

I want the user to be automatically assigned to a group based on a field like "User Type" or say "Rank". I am trying to provide access one level below admin. That user should not be able to modify the groups. If I take away the group permissions, the Group field no longer appears in the "New user" form. So I am thinking he can select a rank and the code can automatically assign the user to a corresponding group.

Thanks a tonne for any help/pointers.

2
terrion
Re: New To Xoops - Use permissions Help needed - Urgent
  • 2006/2/20 13:55

  • terrion

  • Friend of XOOPS

  • Posts: 299

  • Since: 2004/9/19


I'm no expert on this but I've really never seen Rank or Groups influence each other.

As you've probably noticed here in these message boards, there are a lot of different Ranks. Generous Donors, Forum Moderators, Core Developer, and I think there's even a Webmaster running around here somewhere.

But I've never seen a privlidge or additional access that is granted by rank. Rank is a title.

Only Groups control permissions. You could, for example, have three webmasters on your site that are members of the webmaster "group". Webmaster A could have a Rank of Zombie. Webmaster B could have a rank of SuperHero. Webmaster C could have a rank of Naughty.

They would each have the exact same access to any module because all three are members of the Webmaster Group.

Again, Rank is a title with no special privlidges. You could create a special rank of megasuperhero but that's not going to change the group that that person belongs to, only the little images around her display name and the line of text would change (name of that rank.)

Furthermore, I'm thinking of all the times I've added someone to a group to give them additional access to a module or group of modules, or even made someone a webmaster, only to have them come back and say "Hey Man, your forgot to change my rank." So then I'd have to go back in and change the rank manually.

Hope this helps, and by the way, Welcome to Xoops,
Terrion
Purchase, renew, or transfer your domain name to Ultranet Domains and get a FREE 10GB hosting account. Virtual Dedicated Servers around $35/monthly, no contract. FREE 24/7 telephone ...

3
rohitsap
Re: New To Xoops - Use permissions Help needed - Urgent
  • 2006/2/20 14:05

  • rohitsap

  • Just popping in

  • Posts: 3

  • Since: 2006/2/20


Thanks Terrion
I understand what you are saying. My point was to use the "Rank" field like a "Type of user" field. Then depending upon that type field I want user to be automatically assigned to a group. I believe this should be possible by code changes.

Exact scenario is:

1. create a new group, say junioradmin and do not give him admin right to groups, because you dont want him to be adding or modifying groups.

2. now when this junioradmin adds a new user, he cannot specify a group in the form as he has no access to groups.

3. that where i thought of using something like Rank or a new field "user type". Junior admin would select this and the code would automatically add the new user to that group depending upon the user type.

What I want is some pointers on where can i modify the code for user creation. How can i set attributes on the user object before creation.

I hope I am clearer now :(

4
terrion
Re: New To Xoops - Use permissions Help needed - Urgent
  • 2006/2/20 14:12

  • terrion

  • Friend of XOOPS

  • Posts: 299

  • Since: 2004/9/19


How about this, create a JuniorAdmin Group and give them administrative permissions to every module except system?

If you don't allow administrative access to the system module you can't change groups, admin email address, or anything in the Preferences-->System menu...
Terrion
Purchase, renew, or transfer your domain name to Ultranet Domains and get a FREE 10GB hosting account. Virtual Dedicated Servers around $35/monthly, no contract. FREE 24/7 telephone ...

5
rohitsap
Re: New To Xoops - Use permissions Help needed - Urgent
  • 2006/2/20 14:35

  • rohitsap

  • Just popping in

  • Posts: 3

  • Since: 2006/2/20


Hey Terrion

Thanks for helping out! However, this also doesnt work. I am on XOOPS 2.2 It seems Group access is at the system level. So if I stop junioradmin from modifying the groups, he would also be stopped from selecting the group in the user create form. And if I give him the access to groups, I dont want him to add users to admin/webmaster group. Thats the problem!

1. Junior admin should be able to create users and add them to groups other than "Webmasters" (Otherwise he wouldnt be junior any more ;)

2. Junior admin should not be able to modify/create/delete any groups.

is this possible with present XOOPS structure, without any code modifications?

6
terrion
Re: New To Xoops - Use permissions Help needed - Urgent
  • 2006/2/20 14:49

  • terrion

  • Friend of XOOPS

  • Posts: 299

  • Since: 2004/9/19


Man rohitsap,

I must confess that I just don't know. You're way past my skill level here.

I guess what you're asking is if there is a way to allow a user to change another users privlidges, but never above their own level of access.

Just hang out for a bit, somebody will have some ideas to share.

Sorry I couldn't help more...
Terrion
Purchase, renew, or transfer your domain name to Ultranet Domains and get a FREE 10GB hosting account. Virtual Dedicated Servers around $35/monthly, no contract. FREE 24/7 telephone ...

Login

Who's Online

216 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits