authMgrPlus_keyword_owner requires argument $keyword

This commit is contained in:
Arne Breitsprecher 2019-03-07 10:07:12 +01:00 committed by GitHub
parent 099104d832
commit 556ef6f3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,7 @@ function authMgrPlus_manage_keyword( $keyword, $capability ) {
if ( authMgrPlus_have_capability( AuthMgrPlusCapability::ManageUsrsURL ) ) if ( authMgrPlus_have_capability( AuthMgrPlusCapability::ManageUsrsURL ) )
return true; return true;
// Editor? // Editor?
$owner = authMgrPlus_keyword_owner(); $owner = authMgrPlus_keyword_owner($keyword);
if ( $owner === null ) { if ( $owner === null ) {
if ( authMgrPlus_have_capability( AuthMgrPlusCapability::ManageAnonURL ) ) { if ( authMgrPlus_have_capability( AuthMgrPlusCapability::ManageAnonURL ) ) {
return true; return true;