You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
6543 8e18b412c3
Skip AllowedUserVisibilityModes validation on update user if it is an organisation (#16988)
if AllowedUserVisibilityModes allow only public & limited, and orgs can be private, a user can create a repo to that organisation whitch will result in an update of the user. On this call the user is validaten and will be rejected since private is not allowed, but its not an user its an valid org ...

Co-authored-by: Alexey 〒erentyev <axifnx@gmail.com>
3 years ago
..
fixtures Add repo_id for attachment (#16958) 3 years ago
migrations Add repo_id for attachment (#16958) 3 years ago
access.go [API] generalize list header (#16551) 3 years ago
access_test.go Fix "access" fixtures and tests (#10247) 4 years ago
action.go Improve notifications for WIP draft PR's (#14663) 3 years ago
action_list.go refactor: reduce sql query in retrieveFeeds (#3547) 6 years ago
action_test.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 3 years ago
admin.go improve empty notice (#15890) 3 years ago
admin_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
attachment.go Add repo_id for attachment (#16958) 3 years ago
attachment_test.go Add repo_id for attachment (#16958) 3 years ago
avatar.go Double the avatar size factor (#15941) 3 years ago
avatar_test.go Fix individual tests (addition to #15802) (#15818) 3 years ago
branches.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
branches_test.go Add deleted_branch table fixture (#2832) 7 years ago
commit.go Replace `list.List` with slices (#16311) 3 years ago
commit_status.go [API] generalize list header (#16551) 3 years ago
commit_status_test.go Fix bug about ListOptions and stars/watchers pagnation (#14556) 3 years ago
consistency.go Update milestone counters on new issue. (#16183) 3 years ago
consistency_test.go Fix orphaned objects deletion bug (#15657) 3 years ago
context.go Add repo_id for attachment (#16958) 3 years ago
convert.go just add some unit tests (#16291) 3 years ago
error.go Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
error_oauth2.go
external_login_user.go chore(models): rewrite code format. (#14754) 3 years ago
fixture_generation.go chore(models): rewrite code format. (#14754) 3 years ago
fixture_test.go Move fixture generation to contrib and add test (#10277) 4 years ago
gpg_key.go [API] generalize list header (#16551) 3 years ago
gpg_key_add.go Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
gpg_key_commit_verification.go Replace `list.List` with slices (#16311) 3 years ago
gpg_key_common.go Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
gpg_key_import.go Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
gpg_key_test.go Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
gpg_key_verify.go Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
helper.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
helper_directory.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
helper_environment.go chore(models): rewrite code format. (#14754) 3 years ago
index.go Add primary_key to issue_index (#16813) 3 years ago
index_test.go Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) 3 years ago
issue.go Alter issue/comment table TEXT fields to LONGTEXT (#16765) 3 years ago
issue_assignees.go chore(models): rewrite code format. (#14754) 3 years ago
issue_assignees_test.go Fix individual tests (addition to #15802) (#15818) 3 years ago
issue_comment.go Alter issue/comment table TEXT fields to LONGTEXT (#16765) 3 years ago
issue_comment_list.go chore(models): rewrite code format. (#14754) 3 years ago
issue_comment_test.go Pull request review/approval and comment on code (#3748) 6 years ago
issue_dependency.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
issue_dependency_test.go Refactor comment (#9330) 5 years ago
issue_label.go Actually compute proper foreground color for labels (#16729) 3 years ago
issue_label_test.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
issue_list.go Performance improvement for list pull requests (#15447) 3 years ago
issue_list_test.go Add Organization Wide Labels (#10814) 4 years ago
issue_lock.go chore(models): rewrite code format. (#14754) 3 years ago
issue_milestone.go [API] generalize list header (#16551) 3 years ago
issue_milestone_test.go [API] generalize list header (#16551) 3 years ago
issue_reaction.go chore(models): rewrite code format. (#14754) 3 years ago
issue_reaction_test.go Migrate reactions when migrating repository from github (#9599) 5 years ago
issue_stopwatch.go [API] generalize list header (#16551) 3 years ago
issue_stopwatch_test.go Fixed assert statements. (#16089) 3 years ago
issue_test.go Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) 3 years ago
issue_tracked_time.go [API] generalize list header (#16551) 3 years ago
issue_tracked_time_test.go [API] generalize list header (#16551) 3 years ago
issue_user.go Mail assignee when issue/pull request is assigned (#8546) 5 years ago
issue_user_test.go Add "Update Branch" button to Pull Requests (#9784) 5 years ago
issue_watch.go chore(models): rewrite code format. (#14754) 3 years ago
issue_watch_test.go Fixed assert statements. (#16089) 3 years ago
issue_xref.go don't record error when loading ref comment but ref comment id is zero (#15820) 3 years ago
issue_xref_test.go Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) 3 years ago
lfs.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
lfs_lock.go chore(models): rewrite code format. (#14754) 3 years ago
list_options.go Fix list_options GetStartEnd (#16303) 3 years ago
log.go Fix xorm log stack level (#15285) 3 years ago
login_source.go Fix add authentication page (#16543) 3 years ago
main_test.go Add gitea-vet (#10948) 4 years ago
migrate.go Fix delete nonexist oauth application 500 and prevent deadlock (#15384) 3 years ago
models.go Add API Token Cache (#16547) 3 years ago
models_test.go Add test to ensure that dumping of login sources remains correct (#16847) 3 years ago
notification.go [API] generalize list header (#16551) 3 years ago
notification_test.go add request review from specific reviewers feature in pull request (#10756) 4 years ago
oauth2.go Refactor: Move login out of models (#16199) 3 years ago
oauth2_application.go [API] generalize list header (#16551) 3 years ago
oauth2_application_test.go Fixed assert statements. (#16089) 3 years ago
org.go Correctly return the number of Repositories for Organizations (#16807) 3 years ago
org_team.go [API] generalize list header (#16551) 3 years ago
org_team_test.go [API] generalize list header (#16551) 3 years ago
org_test.go [API] generalize list header (#16551) 3 years ago
project.go chore(models): rewrite code format. (#14754) 3 years ago
project_board.go chore(models): rewrite code format. (#14754) 3 years ago
project_issue.go chore(models): rewrite code format. (#14754) 3 years ago
project_test.go chore(models): rewrite code format. (#14754) 3 years ago
protected_tag.go Add tag protection (#15629) 3 years ago
protected_tag_test.go Add tag protection (#15629) 3 years ago
pull.go Add option to update pull request by `rebase` (#16125) 3 years ago
pull_list.go Add agit flow support in gitea (#14295) 3 years ago
pull_sign.go Replace `list.List` with slices (#16311) 3 years ago
pull_test.go Add agit flow support in gitea (#14295) 3 years ago
release.go [API] ListReleases add filter for draft and pre-releases (#16175) 3 years ago
repo.go Add repo_id for attachment (#16958) 3 years ago
repo_activity.go Add top author stats to activity page (#9615) 5 years ago
repo_archiver.go Fix archive error when rename repo or user (#16399) 3 years ago
repo_avatar.go Avatars and Repo avatars support storing in minio (#12516) 4 years ago
repo_branch.go Move newbranch to standalone package (#9627) 5 years ago
repo_collaboration.go [API] generalize list header (#16551) 3 years ago
repo_collaboration_test.go API add/generalize pagination (#9452) 4 years ago
repo_generate.go [API] generalize list header (#16551) 3 years ago
repo_generate_test.go Fixed assert statements. (#16089) 3 years ago
repo_indexer.go Index code and stats only for non-empty repositories (#10251) 4 years ago
repo_issue.go Add EnableTimetracking option to app settings (#3719) 6 years ago
repo_language_stats.go chore(models): rewrite code format. (#14754) 3 years ago
repo_list.go not show private user's repo in explore view (#16550) 3 years ago
repo_list_test.go chore(models): rewrite code format. (#14754) 3 years ago
repo_mirror.go Add push to remote mirror repository (#15157) 3 years ago
repo_permission.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 (#6119) 5 years ago
repo_pushmirror.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repo_pushmirror_test.go Add push to remote mirror repository (#15157) 3 years ago
repo_redirect.go Redirect on changed user and org name (#11649) 3 years ago
repo_redirect_test.go Redirect on changed user and org name (#11649) 3 years ago
repo_sign.go Add configurable Trust Models (#11712) 4 years ago
repo_test.go Fixed assert statements. (#16089) 3 years ago
repo_transfer.go [API] generalize list header (#16551) 3 years ago
repo_transfer_test.go chore(models): rewrite code format. (#14754) 3 years ago
repo_unit.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
repo_watch.go chore(models): rewrite code format. (#14754) 3 years ago
repo_watch_test.go API add/generalize pagination (#9452) 4 years ago
review.go [API] generalize list header (#16551) 3 years ago
review_test.go Ensure review dismissal only dismisses the correct review (#15477) 3 years ago
session.go Fix DB session cleanup (#15697) 3 years ago
sql_postgres_with_schema.go Ensure that schema search path is set with every connection on postgres (#14131) 4 years ago
ssh_key.go [API] generalize list header (#16551) 3 years ago
ssh_key_authorized_keys.go Refactor: Move login out of models (#16199) 3 years ago
ssh_key_authorized_principals.go Refactor: Move login out of models (#16199) 3 years ago
ssh_key_deploy.go [API] generalize list header (#16551) 3 years ago
ssh_key_fingerprint.go Refactor: Move login out of models (#16199) 3 years ago
ssh_key_parse.go Refactor: Move login out of models (#16199) 3 years ago
ssh_key_principals.go Refactor: Move login out of models (#16199) 3 years ago
ssh_key_test.go Add support for ed25519_sk and ecdsa_sk SSH keys (#13462) 3 years ago
star.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
star_test.go API add/generalize pagination (#9452) 4 years ago
store.go Refactor: Move login out of models (#16199) 3 years ago
task.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
test_fixtures.go Create Proper Migration Tests (#15116) 3 years ago
token.go Add API Token Cache (#16547) 3 years ago
token_test.go chore(models): rewrite code format. (#14754) 3 years ago
topic.go [API] generalize list header (#16551) 3 years ago
topic_test.go [API] generalize list header (#16551) 3 years ago
twofactor.go Use single shared random string generation function (#15741) 3 years ago
u2f.go Display ui time with customize time location (#7792) 5 years ago
u2f_test.go Add gitea-vet (#10948) 4 years ago
unit.go Kanban board (#8346) 4 years ago
unit_tests.go Rework repository archive (#14723) 3 years ago
update.go Remove Unused Functions (#10516) 4 years ago
upload.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
user.go Skip AllowedUserVisibilityModes validation on update user if it is an organisation (#16988) 3 years ago
user_avatar.go Send size to /avatars if requested (#15459) 3 years ago
user_follow.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
user_follow_test.go Add gitea-vet (#10948) 4 years ago
user_heatmap.go Fix heatmap activity (#15252) 3 years ago
user_heatmap_test.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
user_mail.go Fix activation of primary email addresses (#16385) 3 years ago
user_mail_test.go Always store primary email address into email_address table and also the state (#15956) 3 years ago
user_openid.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
user_openid_test.go Fixed assert statements. (#16089) 3 years ago
user_redirect.go Redirect on changed user and org name (#11649) 3 years ago
user_redirect_test.go Redirect on changed user and org name (#11649) 3 years ago
user_test.go Refactor: Move login out of models (#16199) 3 years ago
userlist.go chore(models): rewrite code format. (#14754) 3 years ago
userlist_test.go chore(models): rewrite code format. (#14754) 3 years ago
webhook.go [API] generalize list header (#16551) 3 years ago
webhook_test.go [API] generalize list header (#16551) 3 years ago
wiki.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
wiki_test.go Move wiki related funtions from models to services/wiki (#9355) 5 years ago