Changeset 15392


Ignore:
Timestamp:
Mar 3, 2016, 2:04:40 PM (8 years ago)
Author:
Ryan J Ollos
Message:

0.5.1dev: Replace use of deprecated PermissionCache.permissions()

The defect was introduced in [14967]. The method was
removed in Trac 1.1.2.

Refs #12179, trac:#12366.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simplemultiprojectplugin/trunk/simplemultiproject/templates/simplemultiproject_adminpanel.html

    r14967 r15392  
    1111            function updateDueDate() {
    1212              $("#projectcloseddate").enable($("#closed").checked());
    13             }       
    14             $("#closed").click(updateDueDate);       
     13            }
     14            $("#closed").click(updateDueDate);
    1515            updateDueDate();
    1616            $("#name").get(0).focus()
     
    6464            </form>
    6565            <py:otherwise>
    66                 <form py:if="'PROJECT_ADMIN' in perm.permissions()" class="addnew" id="simplemultiproject" action="" method="post">
     66                <form py:if="'PROJECT_ADMIN' in perm" class="addnew" id="simplemultiproject" action="" method="post">
    6767                    <fieldset>
    6868                        <legend>Add Project</legend>
     
    106106                            <tbody>
    107107                                <tr py:for="project in projects">
    108                                     <td><input py:if="'PROJECT_ADMIN' in perm.permissions()" type="checkbox" name="sel" value="$project.id" /></td>
     108                                    <td><input py:if="'PROJECT_ADMIN' in perm" type="checkbox" name="sel" value="$project.id" /></td>
    109109                                    <py:choose>
    110                                         <td py:when="'PROJECT_ADMIN' in perm.permissions()">
     110                                        <td py:when="'PROJECT_ADMIN' in perm">
    111111                                            <a href="${href.admin('projects','simplemultiproject')}/${project.id}" method="post">${project.name}</a>
    112112                                        </td>
     
    121121                            </tbody>
    122122                        </table>
    123                         <div py:if="'PROJECT_ADMIN' in perm.permissions()" class="buttons">
     123                        <div py:if="'PROJECT_ADMIN' in perm" class="buttons">
    124124                            <input type="submit" name="remove" value="Remove selected items"/>
    125125                        </div>
Note: See TracChangeset for help on using the changeset viewer.