Hi Bob,

Thanks a lot, that helped a lot

 
Best regards

Oliver Fendt

Siemens AG
Corporate Technology
CT T DE IT 1
Otto-Hahn-Ring 6
81739 München, Deutschland
Tel.: +49 (89) 636-46033 
Fax: +49 (89) 636-45450 
mailto:[email protected] 

Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; 
Vorstand: Peter Löscher, Vorsitzender; Wolfgang Dehen, Heinrich Hiesinger, Joe 
Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y. Solmssen; 
Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin 
Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
 

-----Original Message-----
From: Gobeille, Robert [mailto:[email protected]] 
Sent: Friday, April 09, 2010 4:55 PM
To: Fendt, Oliver
Cc: [email protected]
Subject: Re: [FOSSology] Question regrading user permissions

On Apr 9, 2010, at 5:43 AM, Fendt, Oliver wrote:

> I have probably a stupid question but I did not find the answer right now in 
> the docu .
> Is there a way to create an user account with the following permissions:
> Upload files
> Schedule analysis 
> View and download
> Delete uploads
> 
> But
> NOT be able to change the job priorities

Hi Oliver,

That's a good idea.  Right now if you have "analyze" permission, you also have 
permission to change priority of jobs.

One solution is to modify the code.  In file jobs-showjobs.php, around line 
522, change:

      case "HTML":
    /* Process any actions */
    if (@$_SESSION['UserLevel'] >= PLUGIN_DB_ANALYZE)
      {
      $JobPk = GetParm("jobid",PARM_INTEGER);
 
Change PLUGIN_DB_ANALYZE to PLUGIN_DB_USERADMIN:

      case "HTML":
    /* Process any actions */
    if (@$_SESSION['UserLevel'] >= PLUGIN_DB_USERADMIN)
      {
      $JobPk = GetParm("jobid",PARM_INTEGER);
 
That should do it.

Bob
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to