Changeset 1087 for trunk/common


Ignore:
Timestamp:
12/22/09 18:54:31 (2 years ago)
Author:
savin.tiberiu@…
Message:

Algorithm tags macro.
Reviewed: http://reviewboard.infoarena.ro/r/124/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/security.php

    r1053 r1087  
    170170        case 'job-view-score': 
    171171        case 'job-view-partial-feedback': 
     172        case 'task-view-tags': 
    172173            return $action; 
    173174 
     
    393394            return $is_owner || $is_admin; 
    394395 
     396        // View tags 
     397        case 'task-view-tags': 
     398            $in_archive = false; 
     399            $rounds = task_get_submit_rounds($task['id'], $user['id']); 
     400            foreach ($rounds as $round_id) { 
     401                if ($round_id == 'arhiva' || $round_id == 'arhiva-educationala') { 
     402                    $in_archive = true; 
     403                } 
     404            } 
     405            return $in_archive || $is_owner || $is_admin; 
     406 
    395407        // Admin stuff: 
    396408        case 'simple-critical': 
Note: See TracChangeset for help on using the changeset viewer.