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