canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,043
edits
No edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
== Backdrop == | == Backdrop == | ||
We tried to use db_acl, but the implementation meant too much overhead for our relatively simple requirements. Mainly we wanted to lock down access by group/role. We opted to go with the [http://www.thinkingphp.org/2006/10/03/a-lightweight-approach-to-acl-the-33-lines-of-magic/ 33 lines of magic] approach which is simpler by design and was [http://en.wikipedia.org/wiki/Mike_Shaver shaver]'s first preferred choice. Read the blog to see why it can get the job done even if it isn't completely normalized and abstracted. | We tried to use db_acl, but the implementation meant too much overhead for our relatively simple requirements. Mainly we wanted to lock down access by group/role. We opted to go with the [http://www.thinkingphp.org/2006/10/03/a-lightweight-approach-to-acl-the-33-lines-of-magic/ 33 lines of magic] approach which is simpler by design and was [http://en.wikipedia.org/wiki/Mike_Shaver shaver]'s first preferred choice. Read the blog to see why it can get the job done even if it isn't completely normalized and abstracted. | ||
See also: [[Update:Admins/Groups|AMO User Groups]] | |||
== Permissions == | == Permissions == | ||
Line 39: | Line 41: | ||
$this->SimpleAuth->startup($this); | $this->SimpleAuth->startup($this); | ||
$this->SimpleAcl->startup($this); | $this->SimpleAcl->startup($this); | ||
== Disabling Permissions in Controllers == | == Disabling Permissions in Controllers == | ||
Line 60: | Line 57: | ||
$this->SimpleAcl->enabled=false; | $this->SimpleAcl->enabled=false; | ||
} | } | ||
== Controller Notepad == | == Controller Notepad == |