diff options
| author | rubenwardy <rubenwardy@gmail.com> | 2018-04-03 14:56:43 +0100 |
|---|---|---|
| committer | rubenwardy <rubenwardy@gmail.com> | 2018-04-03 15:01:21 +0100 |
| commit | ed88c61714ba62ad591d8dcbc635231f0fc0daa7 (patch) | |
| tree | 6081c199a25a5eb86532a552c32f503d19901f71 /app/templates/users | |
| parent | 5f2a3992602b59614a8c3d9a193e4669705c048c (diff) | |
| download | cheatdb-ed88c61714ba62ad591d8dcbc635231f0fc0daa7.tar.xz | |
Add ability to create packages on behalf of other users
Fixes #27
Diffstat (limited to 'app/templates/users')
| -rw-r--r-- | app/templates/users/user_profile_page.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index 91a3b54..7e280e1 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -74,6 +74,11 @@ <li><i>No packages available</i></ul> {% endfor %} </ul> + {% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %} + <a href="{{ url_for('create_edit_package_page', author=user.username) }}"> + Create + </a> + {% endif %} </div> {% if form %} |
