HM Is Admin Adds a custom capability and some helper functions to determine if the current user is a privileged user. |
|
A Human Made project. Maintained by @jazzsequence. |
Contributors: jazzsequence, bradp, rmccue, dan-westall
Stable tag: 1.4.2
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
You can use Composer to load this into your project but you'll need to add a repository for it:
"require": {
"humanmade/hm-is-admin": "^1.4.2"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:humanmade/hm-is-admin.git"
}
]
Adds a custom capability and some helper functions to determine if the current user is a privileged user.
By default, privileged users are any users with @humanmade.com
, @humanmade.co.uk
or @hmn.md
in their email address. Privileged domains can be filtered and HM proxy are given the capability by default.
The development process follows the standard Human Made development process.
Here's a quick summary:
- Assign issues you're working on to yourself.
- Work on a branch per issue, something like
name-of-feature
. One branch per feature/bug, please. - File a PR early so it can be used for tracking progress.
- When you're finished, mark the PR for review by labelling with "Review & Merge".
- Get someone to review your code, and assign to them; if no one is around, the project lead () can review.
- bump version in composer file
- Added composer install instructions.
- Fixed path to class file.
- Added
use
statement forWP_User
class.
- Added
composer.json
so package can be loaded as a composer library. - Fixed version constant in main plugin file and updated plugin description.
- Updated plugin to more current coding standards.
- Fixed typo in function call for
get_cap_name()
which caused fatals
- Regex the domains and check if the current user email is in that list of domains. Domains can be filtered with
hm_is_admin_allowed_domains
. - Allow a user ID/object to be passed to
is_hm_admin
to check if a specific user is an hm_admin. - Other less significant changes like more
wds_admin
tohm_admin
switches.
- Adds a check for hm-proxy-access. If a user is proxied in, the check supercedes the email address check.
- Adds an optional parameter to
is_hm_admin
to manually bypass the proxy check.
- Refactored default privileged users to be an array of users with
humanmade.co.uk
orhmn.md
in their email address.
- First release