Perms

by Ssaliss

Back to Ideas.

Ssaliss2010-03-17 20:51:02
Mostly a parallell from this thread, but several people are apparently annoyed over how perms work. So here's my suggestion of a rewrite: Make it work like most firewall-rules, where it runs through every line, and where it matches, that's what's done. An example:

CODE
ALLOW Ssaliss
DENY All

That would only allow me.

CODE
ALLOW Ruiku
DENY Narynth
ALLOW Glomdoring
DENY Glomdoring enemies
DENY All

This would allow Ruiku to enter (who, by the way, is a Glom enemy), deny Narynth (who is the head honcho of Glom), allow everyone else in Glomdoring but deny everyone else. Of course, the second-to-last line is rather redundant, but anyway... This would basically allow you to set you perms up any way you want to with little or no confusion.
Unknown2010-03-18 01:04:54
QUOTE (Ssaliss @ Mar 17 2010, 02:51 PM) <{POST_SNAPBACK}>
So here's my suggestion of a rewrite: Make it work like most firewall-rules, where it runs through every line, and where it matches, that's what's done.


So is that first-rule-wins ala iptables then?

What if I prefer last-rule-wins ala pf?

This actually just academic for me since I don't have a manse/ship, but I might in the future.
Ssaliss2010-03-18 03:46:12
QUOTE (Nodel @ Mar 18 2010, 02:04 AM) <{POST_SNAPBACK}>
So is that first-rule-wins ala iptables then?

What if I prefer last-rule-wins ala pf?

This actually just academic for me since I don't have a manse/ship, but I might in the future.

Then you'd better change your mind tongue.gif Really, though, first-rule-wins is just my suggestion because it makes more sense to me. I suppose you could just flip the perm-list upside down to make it last-rule-win...
Kalaneya2010-03-18 05:25:13
I'd be in favour of a change to this. Boolean, I'm sure, is logical for a lot of people, but I'm just not one of them. If there will be no change, then I'd propose at the very least updating the HELP PERMS thing to reflect Lusternian guild positions (taking out novicehead, adding GA/GC) to clear up another potential point of confusion.
Saran2010-03-18 06:23:46
QUOTE (Ssaliss @ Mar 18 2010, 07:51 AM) <{POST_SNAPBACK}>
CODE
ALLOW Ruiku
DENY Narynth
ALLOW Glomdoring
DENY Glomdoring enemies
DENY All

This would allow Ruiku to enter (who, by the way, is a Glom enemy), deny Narynth (who is the head honcho of Glom), allow everyone else in Glomdoring but deny everyone else. Of course, the second-to-last line is rather redundant, but anyway... This would basically allow you to set you perms up any way you want to with little or no confusion.


What happens if you want to deny an enemy of glomdoring who is a member of glomdoring?

Unlikely perhaps, but let's say you changed it to

CODE
ALLOW Ruiku
DENY Narynth
ALLOW Glomdoring
DENY Lyreth enemies
DENY All


You may not expect it to happen, but how would this system account for the possibility that a character could have an allow condition and a deny condition.


edit: Wait, re-read it. My question then becomes how do you add a new permission or change one
Ssaliss2010-03-18 10:38:46
QUOTE (Saran @ Mar 18 2010, 07:23 AM) <{POST_SNAPBACK}>
What happens if you want to deny an enemy of glomdoring who is a member of glomdoring?

Unlikely perhaps, but let's say you changed it to

CODE
ALLOW Ruiku
DENY Narynth
ALLOW Glomdoring
DENY Lyreth enemies
DENY All


You may not expect it to happen, but how would this system account for the possibility that a character could have an allow condition and a deny condition.


edit: Wait, re-read it. My question then becomes how do you add a new permission or change one

If it can be done to make it use the editor, that'd likely be the best way (although it would require yet another change). Otherwise you could remove all the perms below it and add the one(s) you want to add.