Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-04 | Backport of 4084-epics-username-autocomplete | Mario de la Ossa | |
2018-04-10 | Remove edit_note and update_note abilities in favor of admin_note | Douwe Maan | |
2018-02-22 | Port `read_cross_project` ability from EE | Bob Van Landuyt | |
2017-06-29 | bugfix: use `require_dependency` to bring in DeclarativePolicy | http://jneen.net/ | |
2017-06-27 | convert the special-case Ability methods to use policies | http://jneen.net/ | |
2017-06-27 | convert all the policies to DeclarativePolicy | http://jneen.net/ | |
2017-03-09 | use a magic default :global symbol instead of nil | http://jneen.net/ | |
to make sure we mean the global permissions | |||
2017-01-25 | address comments | Jarka Kadlecova | |
2017-01-19 | Support notes without project | Jarka Kadlecova | |
2016-08-30 | factor out a RuleSet so that `delegate!` retains @cannot | http://jneen.net/ | |
2016-08-30 | remove the rest of the dead code | http://jneen.net/ | |
2016-08-30 | take the dive - only use abilities from Policies | http://jneen.net/ | |
2016-08-30 | port UserPolicy | http://jneen.net/ | |
2016-08-30 | port runners, namespaces, group/project_members | http://jneen.net/ | |
2016-08-30 | trim more dead code | http://jneen.net/ | |
2016-08-30 | port groups | http://jneen.net/ | |
2016-08-30 | port personal snippets | http://jneen.net/ | |
2016-08-30 | trim dead code | http://jneen.net/ | |
2016-08-30 | add automatic detection of the policy class | http://jneen.net/ | |
2016-08-30 | port CommitStatus/Build | http://jneen.net/ | |
2016-08-30 | add and use MergeRequestPolicy | http://jneen.net/ | |
2016-08-30 | port issues to Issu{able,e}Policy | http://jneen.net/ | |
2016-08-30 | add support for anonymous abilities | http://jneen.net/ | |
2016-08-30 | add policies, and factor out ProjectPolicy | http://jneen.net/ | |
2016-08-30 | remove Ability.abilities | http://jneen.net/ | |
2016-08-30 | make almost everything on Ability private | http://jneen.net/ | |
2016-08-30 | don't double-cache project_abilites | http://jneen.net/ | |
2016-08-30 | remove six, and use a Set instead | http://jneen.net/ | |
2016-08-30 | re-enable the cyclomatic complexity checker | http://jneen.net/ | |
2016-08-26 | Fix "Wiki" link not appearing in navigation for projects with external wiki | Alejandro Rodríguez | |
2016-08-20 | Make Ability#project_abilities return unique values and fix counts | Stan Hu | |
2016-08-20 | Fix assorted rspec failures due to stale, cached user permissions | Stan Hu | |
RequestStore is disabled in tests, but the Ability class was caching user permissions based on the user and project ID of previous test runs. Revise code to use RequestStore only if it is active. | |||
2016-08-17 | Merge branch 'master' into diff-line-comment-vuejs | Connor Shea | |
2016-08-17 | Move action to render board lists to `Projects::Boards::ListsController` | Douglas Barbosa Alexandre | |
2016-08-17 | Turn board for public projects accessible to everyone | Douglas Barbosa Alexandre | |
2016-08-17 | Add authorization to issues board related controllers | Douglas Barbosa Alexandre | |
2016-08-13 | Merge branch 'master' into diff-line-comment-vuejs | Douwe Maan | |
2016-08-04 | Move abilities by subject class to a dedicated method | Rémy Coutable | |
This will avoid lame conflicts when merging CE to EE Signed-off-by: Rémy Coutable <remy@rymai.me> | |||
2016-08-04 | Merge branch 'master' into diff-line-comment-vuejs | Douwe Maan | |
# Conflicts: # app/models/discussion.rb # db/schema.rb | |||
2016-07-29 | Method for returning issues readable by a user | Yorick Peterse | |
The method Ability.issues_readable_by_user takes a list of users and an optional user and returns an Array of issues readable by said user. This method in turn is used by Banzai::ReferenceParser::IssueParser#nodes_visible_to_user so this method no longer needs to get all the available abilities just to check if a user has the "read_issue" ability. To test this I benchmarked an issue with 222 comments on my development environment. Using these changes the time spent in nodes_visible_to_user was reduced from around 120 ms to around 40 ms. | |||
2016-07-29 | Merge branch 'master' into diff-line-comment-vuejs | Douwe Maan | |
# Conflicts: # db/schema.rb | |||
2016-07-27 | Incorporate review comments | Stan Hu | |
2016-07-27 | Optimize maximum user access level lookup in loading of notes | Stan Hu | |
NotesHelper#note_editable? and ProjectTeam#human_max_access currently take about 16% of the load time of an issue page. This MR preloads the maximum access level of users for all notes in issues and merge requests with several queries instead of one per user and caches the result in RequestStore. | |||
2016-07-26 | Add access checks for diff note and discussion resolution | Douwe Maan | |
2016-07-20 | Fix a few nitpicks | Rémy Coutable | |
Signed-off-by: Rémy Coutable <remy@rymai.me> | |||
2016-07-20 | Allow to disable user request access to groups/projects | Felipe Artur | |
2016-07-15 | Allow to access Container Registry for Public and Internal projects | Kamil Trzcinski | |
2016-07-05 | Add a migration to remove requesters that are owners of their project | Rémy Coutable | |
Signed-off-by: Rémy Coutable <remy@rymai.me> | |||
2016-07-05 | Fix condition in Ability and start with cheaper checks | Rémy Coutable | |
Signed-off-by: Rémy Coutable <remy@rymai.me> | |||
2016-07-05 | New :request_access ability to replace a ugly helper | Rémy Coutable | |
- Group / project members cannot request access - Group members cannot request access to a group's project This addresses an issue where project owners could request access to their own project, leading to UI inconsistency where their requester status would replace their owner status. Signed-off-by: Rémy Coutable <remy@rymai.me> |