Author: bricks
Date: 2017-01-13 12:52:18 +0100 (Fri, 13 Jan 2017)
New Revision: 27201

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/classic/ng/src/gmp/models/capabilities.js
Log:
* src/html/classic/ng/src/gmp/models/capabilities.js: Add method for checking
create permissions to Capabilities class.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2017-01-13 11:49:30 UTC (rev 27200)
+++ trunk/gsa/ChangeLog 2017-01-13 11:52:18 UTC (rev 27201)
@@ -1,5 +1,10 @@
 2017-01-13 Bj�rn Ricks <bjoern.ri...@greenbone.net>
 
+       * src/html/classic/ng/src/gmp/models/capabilities.js: Add method for 
checking
+       create permissions to Capabilities class.
+
+2017-01-13 Bj�rn Ricks <bjoern.ri...@greenbone.net>
+
        Refactoring of the (form) layouts
 
        * src/html/classic/ng/src/web/alerts/dialog.js,

Modified: trunk/gsa/src/html/classic/ng/src/gmp/models/capabilities.js
===================================================================
--- trunk/gsa/src/html/classic/ng/src/gmp/models/capabilities.js        
2017-01-13 11:49:30 UTC (rev 27200)
+++ trunk/gsa/src/html/classic/ng/src/gmp/models/capabilities.js        
2017-01-13 11:52:18 UTC (rev 27201)
@@ -57,6 +57,10 @@
     return this.mayOp('delete_' + type);
   }
 
+  mayCreate(type) {
+    return this.mayOp('create_' + type);
+  }
+
   setProperties() {};
 
   parseProroperties(elem) {

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to