diff –git a/disable-updates.php b/disable-updates.php
index c25ed2f..46352d8 100644
— a/disable-updates.php
+++ b/disable-updates.php
@@ -139,8 +139,10 @@ class OS_Disable_WordPress_Updates {
*/
function admin_init() {
if ( !function_exists(“remove_action”) ) return;
–
–
+
+ global $current_user;
+ $current_user->allcaps[‘update_plugins’] = false;
+
/*
* Hide maintenance and update nag
*/
-
This reply was modified 7 years, 9 months ago by goruha.