comparison rhodecode/controllers/admin/repos.py @ 3245:8f3cc21d83e6 beta

fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 28 Jan 2013 21:14:46 +0100
parents a9565b8b429b
children 6cdf2cd9d9d8
comparison
equal deleted inserted replaced
3244:23c816fd6afb 3245:8f3cc21d83e6
136 c.repos_list = Repository.query()\ 136 c.repos_list = Repository.query()\
137 .order_by(func.lower(Repository.repo_name))\ 137 .order_by(func.lower(Repository.repo_name))\
138 .all() 138 .all()
139 139
140 repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, 140 repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list,
141 admin=True) 141 admin=True,
142 super_user_actions=True)
142 #json used to render the grid 143 #json used to render the grid
143 c.data = json.dumps(repos_data) 144 c.data = json.dumps(repos_data)
144 145
145 return render('admin/repos/repos.html') 146 return render('admin/repos/repos.html')
146 147