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

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/classic/ng/src/web/tasks/tasks.js
Log:
* src/html/classic/ng/src/web/tasks/tasks.js: Only show create task icon if
the user has create permissions.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2017-01-13 11:52:18 UTC (rev 27201)
+++ trunk/gsa/ChangeLog 2017-01-13 11:52:20 UTC (rev 27202)
@@ -1,5 +1,10 @@
 2017-01-13 Bj�rn Ricks <bjoern.ri...@greenbone.net>
 
+       * src/html/classic/ng/src/web/tasks/tasks.js: Only show create task 
icon if
+       the user has create permissions.
+
+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.
 

Modified: trunk/gsa/src/html/classic/ng/src/web/tasks/tasks.js
===================================================================
--- trunk/gsa/src/html/classic/ng/src/web/tasks/tasks.js        2017-01-13 
11:52:18 UTC (rev 27201)
+++ trunk/gsa/src/html/classic/ng/src/web/tasks/tasks.js        2017-01-13 
11:52:20 UTC (rev 27202)
@@ -189,8 +189,10 @@
                 onClick={ () => this.modify_task_wizard.show()}/>
             </IconMenu>
           }
-          <Icon img="new.svg" title={_('New Task')}
-            onClick={() => { this.create_dialog.show(); }}/>
+          {caps.mayCreate('task') &&
+            <Icon img="new.svg" title={_('New Task')}
+              onClick={() => { this.create_dialog.show(); }}/>
+          }
           {caps.mayOp('run_wizard') &&
             <div>
               <TaskWizard ref={ref => this.task_wizard = ref}

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

Reply via email to