Dead Men Walking

Old Server Admin Section => Archived Topics => Head and Section Admins => Topic started by: Penfold on February 10, 2009, 11:01:12 AM

Title: Permission Errors
Post by: Penfold on February 10, 2009, 11:01:12 AM
Bug Tracking: Benny's sent me a pm saying he's been locked out of admin. I've looked at his permissions and they mirror Whitey's and Armitage's so I'm not sure atm....?

Thanks
Title: Permission Errors
Post by: Anonymous on February 10, 2009, 11:18:00 AM
Can Whitey and Arm access admin?
Title: Permission Errors
Post by: Penfold on February 10, 2009, 11:20:28 AM
That was my next question :)

But as neither of them are online atm we'll have to wait and see.

QuoteBenny:
                          Re: Permissions          
                                                              Can't see any admin sections. Can see the private chat areas, just none of the section or game admin pieces.       
Title: Permission Errors
Post by: Armitage on February 10, 2009, 11:35:48 AM
i can see here
Title: Permission Errors
Post by: Penfold on February 10, 2009, 11:43:50 AM
ok... hehe ignore my pm

can you see everything you're meant to?
Title: Permission Errors
Post by: Doorman on February 10, 2009, 12:04:39 PM
Obviously I can access this through 'new posts' but I can't see/find the Admin sections.
Title: Permission Errors
Post by: smilodon on February 10, 2009, 12:42:37 PM
Thanks for the heads up. It's now fixed and you should have access again. If that's my only balls up I'll be utterly amazed.
Title: Permission Errors
Post by: Penfold on February 10, 2009, 12:45:10 PM
Is it easy to articulate what the issue was - I looked at their permissions and they 'looked ok' all being section admins and having access to their various areas?

Just for my 'lurning curve - innit'.
Title: Permission Errors
Post by: Benny on February 10, 2009, 01:57:38 PM
Cheers gents.
Title: Permission Errors
Post by: smilodon on February 10, 2009, 03:23:35 PM
For those with far to much free time, here as requested is the theory.

In the admin section I went for security first and remembered Oldies plea about not letting the world see our stuff. I thought it wise to deny all permissions and then allow some back rather than allow all and the restrict some. If I get it wrong then some people will not have access to areas they should rather than have access to areas they should not.

So I locked the dMw Admin section down completely and denied all access to everyone. Then I gave full access back to administrators and let those permissions be inherited by all the sub forums for the Administators. I did the same for Section Heads and locked them out completely but then opened up the forums and sub forums they have access to (I made sure not to let them see the "Why are our Game Section Heads such Twots" forum). And then likewise for Game Admins and Public Admins.

Trouble was I didn't open up the top level forum to the Section Heads so they were unable to see into the sub forums. They had access to these forums hence they could get to them via new post but could not navigate there from the main forum. Once I opened the top tier they could see the forums beneath and all was well

Well you did ask!
Title: Permission Errors
Post by: Doorman on February 10, 2009, 03:43:53 PM
Makes perfect sense to me and I congratulate you on a job well done. :thumbsup2:
Title: Permission Errors
Post by: Penfold on February 10, 2009, 03:52:08 PM
I agree. it's far better to lock people out then re-add them than standing up on the ramparts sticking out our willies and seeing who takes a pot shot.
Title: Permission Errors
Post by: Penfold on February 10, 2009, 10:51:11 PM
Hey Greg.

I've been out tonight but have returned to a further 5 pms. One of which says that o000o/Jamin can't see the supporters section and he's a contributor.

It came in via Ron about 10.35pm so not sure if solved or not. Jamin's not online atmso I can't double check.
Title: Permission Errors
Post by: Gandalf on February 10, 2009, 11:26:21 PM
don't forget that none of the badged based permissions are in place yet! That won't be until tomorrow.
Title: Permission Errors
Post by: smilodon on February 10, 2009, 11:40:35 PM
This bit is private right? They can't see in here can they? No. Good.

My god do people not read anything? Or do I type in English but every one else out there sees some other language? :frusty:

QuoteAs of tonight the Green Badge Banter, and Supporting Member Chat forums are still not fully functional. You're going to get your access by way of a cool automated system that grants forum permissions as the specific green badge gets awarded.

Also some of the server admin forums may not be fully configured. Give me a day and it 'should' be working. With the exception of the above if you do find yourself with either restricted or broken access to any areas please post the detail here.
Sob :norty:

Still at least people are posting info which is better than  :tumbleweed:
Title: Permission Errors
Post by: Doorman on February 10, 2009, 11:53:54 PM
There's not much that makes me laugh. :angry: But that did. :roflmao:
Title: Permission Errors
Post by: Penfold on February 11, 2009, 10:29:03 AM
lol



So may I clarify....

Now anyone who gets assigned a badge will automatically have the right permissions enabled for whatever's relevant to that badgeholder - be it game, community or whatever?
Title: Permission Errors
Post by: smilodon on February 11, 2009, 10:32:47 AM
With the exception of public admins (for which there is no badge) that's right. As there are only public admins for CS I've assigned them manually.

Also all the WOW players are already assigned to their user groups (guild member (green badge and Council member (red badge)). It's historically been like this so there was nothing to do with their groups apart from rename them.

As I understand it the script will not mess with a player who already has the correct permission set up
Title: Permission Errors
Post by: Penfold on February 11, 2009, 10:01:02 PM
Can someone please tell me when the scripts have run and if we think we're all set up?

I'm still getting PM's from people (eg Squ0nk) telling me they can't see admin and I'm not sure if it's because the scripts haven't run yet or whether there's an error somewhere.

Apart from admin right, I also  take it that Badge Holders' Banter and Supporting Members' Chat have also yet to run as there's no posts therein?

NP if they're not done yet, I just don't know what to tell enquirers.

Thanks
Title: Permission Errors
Post by: smilodon on February 12, 2009, 12:29:47 AM
Frankly I'd ignore them now. They're obviously on a wind up or something.

Failing that try.

"Forum being updated

You no see some forums

this not for long

soon all be well"

Might work. I think Gandy is running the scripts tomorrow?
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 08:01:25 AM
Yup, I'll get the minor error with the scripts fixed this morning and hope to have it all done and tested by lunchtime. Then they can be run on the live and we're all good.

Also, just like the subscription thing, it'll be an hourly schedule so if someone gets a badge just after the script runs then they won't get their permissions set for at least another hour.
Title: Permission Errors
Post by: Penfold on February 12, 2009, 09:46:41 AM
Again, our thanks.

IF you could please just let us know when it's live and I'll do a field test with zxtest account assigning it every badge individually and checking (if that worthwhile).

Thanks
Title: Permission Errors
Post by: smilodon on February 12, 2009, 12:59:48 PM
I also have
 
smiloregistered
smilocouncil
smilopublicadmin
smilogameadmin
smilosectionhead
and smilosupporter
 
They can also all have a play as well tonight :D
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 03:56:28 PM
right, I know what the problem is now. The script is overwhelming the datamanager that handles the forum writes if I ask it to do too much.

I've posted on the vbulletin.org forum and the code does check out, though I've had a couple of optimisation suggestions.

Anyway, to resolve this for now I can do one of two things. One, a much smaller array and then several files that will run at given intervals. ok, but messy.

Two, write to the database directly and bypass the datamanager entirely.

I need to see if option two poses any risk to the database if the script crashes (unlikely) before implementing it so for now I will be using option one.

Of course there is a third option and that someone on vbulletin.org tells me how to overcome the limitation that I'm seeing! (probably a setting hardcoded somewhere)
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 04:36:42 PM
ok, sorted. I am so dumb.

http://www.vbulletin.org/forum/showthread.php?p=1741837

For the saga. Try not to laugh too hard!
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 04:46:49 PM
right, it's working. Want me to run it on live?

For now it only adds. I'll work on the remove tomorrow as that's another can of worms with the shared groups, etc.

EG, user belongs to group 53 as they have award 21 and 24. However if award 24 is removed then the script needs to be smart enough to not remove them from group 53 as they still have award 21.
Title: Permission Errors
Post by: Anonymous on February 12, 2009, 04:48:18 PM
Quote from: Gandalf;263364ok, sorted. I am so dumb.

http://www.vbulletin.org/forum/showthread.php?p=1741837

For the saga. Try not to laugh too hard!

Good work mate, code is a swine sometimes.
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 04:56:32 PM
Quote from: BlueBall;263370Good work mate, code is a swine sometimes.

yup, but it's so obvious now. Though doing what I was would have worked if there were no limitations as proved by a small array. However too many records just swamped it so I suddenly twigged. If they already belong, then ignore them!

The only thing this caused on the test is that the script needed to be run several times to assign all of the usergroups correctly as to check this, I deleted all usergroups from everyone. Then ran the script. It took a while and updated some records on the first attempt as it was hitting the cap again.

So ran it again, more updated, ran again and some more. It took about 5 runs before all were updated.

So basically, if someone goes mad and decides everyone gets an award for being a L4D puker or something then it 'may' take several hours to assign the correct groups.
Title: Permission Errors
Post by: smilodon on February 12, 2009, 07:02:44 PM
Thanks for the work. If it makes life easier I can look at the group set up and streamline that.

My concern is the green badge holder group (53). Obviously anyone with a green badge gets access. But some green badge holders are green game badge holders and are given additional permissions i.e. CS green badge holders get access to their own Private chat forum in the CS section. Likewise WOW Green badge holders have their own guild member forum in the DMR section. Then we have Game admins who conceivably might have a red admin badge for one game but no green badge for another i.e. they are a WOW council member but don't play anything else. They also need access to the Green Badge Chat forum as well as the WOW council members forum but not the green CS private forum :blink: Finally we have the very rare possibility that someone might not play any games at all but be a big folder and have a green or red folding badge. They too need access to this sacred green badge holder chat.... arrrggghhhhh!

This is my dilema. I thought the easiest thing would be to make individual groups for each badge both green and red and then assign them to the required forum. Not doing this would mean that for example Penfold would not be able to see the Green Badge forum as he actually has no Green Badges... the little workaholic. Granted his Gold Admin badge would get him access but as there are so many permutations of badges I think one user group per badge is the only way I can do this and keep my sanity.

If someone has a more efficient method with fewer groups then I'm all ears.

I can still manually add the members but I'm mindful that the best way to make sure the script runs as we want is to actually use it to do these permissions. As soon as Gandy is happy I say lets go with it and see what happens.
Title: Permission Errors
Post by: Whitey on February 12, 2009, 07:20:20 PM
Quote from: smilodon;263089With the exception of public admins (for which there is no badge) that's right. As there are only public admins for CS I've assigned them manually.


Has this been done on the live forum as Kregoron doesn't have access to the CS public admin forum?
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 07:21:27 PM
The script works fine. Have a look on the test forum. Just tell me when you want me to press the button on the live forum.
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 07:22:51 PM
Quote from: Whitey;263405Has this been done on the live forum as Kregoron doesn't have access to the CS public admin forum?

No, not yet. Awaiting approval from the forum head before I press 'go'
Title: Permission Errors
Post by: smilodon on February 12, 2009, 07:27:12 PM
Right now all the admin forums are closed to anyone other than Section Heads (administrators and Section Head user groups). I went with the concept of shut everything and then open up the right forums rather than allow everything and then shut some stuff down. I'm opening stuff up as we speak so as the CS public admins are already assigned they should soon be able to see into that forum. CS game admins will get there access as soon as the Gandy-script is run
Title: Permission Errors
Post by: Whitey on February 12, 2009, 07:45:00 PM
Thanks for the update :)
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 07:55:32 PM
OK, small thing. custom user titles. See http://www.deadmen.co.uk/forum/showpost.php?p=256774&postcount=15 for example.

This user title EG: dMr Game Admin is set manually in the admin CP. Currently my script won't do this. Is this something that needs to be set for red badge holders when they get a badge?

If so, what's the deal if they have more than one red badge? First badge wins? Newest badge wins? (It'd be newest badge by default)
Title: Permission Errors
Post by: smilodon on February 12, 2009, 08:20:36 PM
Admins section is done.

Gandy I thought we were dropping the title for everyone except Section Heads?
Title: Permission Errors
Post by: Gandalf on February 12, 2009, 08:21:31 PM
Quote from: smilodon;263455Admins section is done.

Gandy I thought we were dropping the title for everyone except Section Heads?

Perfect, I like that option as section heads are manual anyway! :D