Explorar o código

Fixed permissions for delete and purge

Edgard %!s(int64=7) %!d(string=hai) anos
pai
achega
8414f825de
Modificáronse 1 ficheiros con 13 adicións e 4 borrados
  1. 13 4
      inc/provider.class.php

+ 13 - 4
inc/provider.class.php

@@ -24,10 +24,19 @@ class PluginSinglesignonProvider extends CommonDBTM {
    protected $_resource_owner = null;
 
    public static function canCreate() {
-      if (static::$rightname) {
-         return Session::haveRight(static::$rightname, UPDATE);
-      }
-      return false;
+      return static::canUpdate();
+   }
+
+   public static function canDelete() {
+      return static::canUpdate();
+   }
+
+   public static function canPurge() {
+      return static::canUpdate();
+   }
+
+   public static function canView() {
+      return static::canUpdate();
    }
 
    // Should return the localized name of the type