]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Prevent group creation by silenced users.
authorBrion Vibber <brion@pobox.com>
Tue, 28 Dec 2010 19:34:02 +0000 (11:34 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 28 Dec 2010 19:34:02 +0000 (11:34 -0800)
commitd3d9797496a3777d781627595565c5ea3a71f683
tree90a754db104477434475d4bcfc1273faf9f286e4
parent46123e37543be4ea784e90528176fd205bfece49
Prevent group creation by silenced users.

* adds Right::CREATEGROUP
* logic in Profile::hasRight() checks for silencing
* NewgroupAction checks for the permission before letting you see or process the form in the UI
* User_group::register() logic does a low-level check on the specified initial group admin, and rejects creation if that user doesn't have the right; guaranteeing that API methods etc will also have this restriction applied sensibly.
actions/newgroup.php
classes/Profile.php
classes/User_group.php
lib/right.php