Show More
@@ -423,7 +423,7 b' class MyAccountView(BaseAppView, DataGri' | |||||
423 | default_redirect_url = '' |
|
423 | default_redirect_url = '' | |
424 |
|
424 | |||
425 | # save repo |
|
425 | # save repo | |
426 | if entry.get('bookmark_repo'): |
|
426 | if entry.get('bookmark_repo') and safe_int(entry.get('bookmark_repo')): | |
427 | repo = Repository.get(entry['bookmark_repo']) |
|
427 | repo = Repository.get(entry['bookmark_repo']) | |
428 | perm_check = HasRepoPermissionAny( |
|
428 | perm_check = HasRepoPermissionAny( | |
429 | 'repository.read', 'repository.write', 'repository.admin') |
|
429 | 'repository.read', 'repository.write', 'repository.admin') | |
@@ -432,7 +432,7 b' class MyAccountView(BaseAppView, DataGri' | |||||
432 | should_save = True |
|
432 | should_save = True | |
433 | default_redirect_url = '${repo_url}' |
|
433 | default_redirect_url = '${repo_url}' | |
434 | # save repo group |
|
434 | # save repo group | |
435 | elif entry.get('bookmark_repo_group'): |
|
435 | elif entry.get('bookmark_repo_group') and safe_int(entry.get('bookmark_repo_group')): | |
436 | repo_group = RepoGroup.get(entry['bookmark_repo_group']) |
|
436 | repo_group = RepoGroup.get(entry['bookmark_repo_group']) | |
437 | perm_check = HasRepoGroupPermissionAny( |
|
437 | perm_check = HasRepoGroupPermissionAny( | |
438 | 'group.read', 'group.write', 'group.admin') |
|
438 | 'group.read', 'group.write', 'group.admin') |
General Comments 0
You need to be logged in to leave comments.
Login now