Browse Source

Merge branch 'develop' into standalone_develop

pull/313/head
yystopf 4 years ago
parent
commit
7ba77680ac
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      app/controllers/application_controller.rb
  2. +2
    -2
      config/initializers/doorkeeper.rb

+ 1
- 1
app/controllers/application_controller.rb View File

@@ -684,7 +684,7 @@ class ApplicationController < ActionController::Base

@project, @owner = Project.find_with_namespace(namespace, id)

if @project and current_user.can_read_project?(@project)
if @project and current_user.can_read_project?(@project) and controller_path == "projects/project_invite_links"
logger.info "###########: has project and can read project"
@project
# elsif @project && current_user.is_a?(AnonymousUser)


+ 2
- 2
config/initializers/doorkeeper.rb View File

@@ -101,12 +101,12 @@ Doorkeeper.configure do

# Authorization Code expiration time (default: 10 minutes).
#
# authorization_code_expires_in 10.minutes
authorization_code_expires_in 7.days

# Access token expiration time (default: 2 hours).
# If you want to disable expiration, set this to `nil`.
#
# access_token_expires_in 2.hours
access_token_expires_in 7.days

# Assign custom TTL for access tokens. Will be used instead of access_token_expires_in
# option if defined. In case the block returns `nil` value Doorkeeper fallbacks to


Loading…
Cancel
Save