Update plugin.php
Removed semicolon according to issue #24 "Editor can delete other users links (including admin's)"
This commit is contained in:
parent
3262c12253
commit
110fc6e680
@ -527,7 +527,7 @@ function amp_manage_keyword( $keyword, $capability ) {
|
|||||||
$user = YOURLS_USER !== false ? YOURLS_USER : NULL;
|
$user = YOURLS_USER !== false ? YOURLS_USER : NULL;
|
||||||
if ( amp_have_capability( ampCap::ManageUsrsURL ) // Admin?
|
if ( amp_have_capability( ampCap::ManageUsrsURL ) // Admin?
|
||||||
|| ( $owner === NULL && amp_have_capability( ampCap::ManageAnonURL ) ) // Editor?
|
|| ( $owner === NULL && amp_have_capability( ampCap::ManageAnonURL ) ) // Editor?
|
||||||
|| ( $owner === $user && amp_have_capability( $capability ) ) ); // Self Edit?
|
|| ( $owner === $user && amp_have_capability( $capability ) ) ) // Self Edit?
|
||||||
$return = true;
|
$return = true;
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
Loading…
Reference in New Issue
Block a user