Homec4science

Show an "approval queue" item on the home page for admins, and sort out menu…

Authored by epriestley <git@epriestley.com> on Nov 13 2013, 20:24.

Description

Show an "approval queue" item on the home page for admins, and sort out menu item visibility

Summary:

  • If you're an administrator and there are users waiting for approval, show a count on the home page.
  • Sort out the isUserActivated() access check.
  • Hide all the menu widgets except "Logout" for disabled and unapproved users.
  • Add a "Log In" item.
  • Add a bunch of unit tests.

Test Plan: Ran unit tests, clicked around as unapproved/approved/logged-in/logged-out users.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, chad

Differential Revision: https://secure.phabricator.com/D7574

Details

Committed
epriestley <git@epriestley.com>Nov 13 2013, 20:24
Pushed
aubortJan 31 2017, 17:16
Parents
rPHc8320923c405: Implement most of the administrative UI for approval queues
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH0fa411083f72: Show an "approval queue" item on the home page for admins, and sort out menu… (authored by epriestley <git@epriestley.com>).Nov 13 2013, 20:24