Skip to content
Snippets Groups Projects
Unverified Commit 244cac6d authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

website blocks dependencies for in_block_dependencies

parent a65e8d6b
No related branches found
No related tags found
No related merge requests found
......@@ -89,9 +89,7 @@ module WithGit
protected
def in_block_dependencies?(website)
website.blocks.find_each do |block|
return true if in? block.git_dependencies
end
website.blocks_dependencies.include?(self)
end
def dependencies_through_blocks(website)
......
......@@ -208,11 +208,11 @@ class University::Person < ApplicationRecord
end
def for_website?(website)
in_block_dependencies?(website) ||
administrator.for_website?(website) ||
author.for_website?(website) ||
researcher.for_website?(website) ||
teacher.for_website?(website)
teacher.for_website?(website) ||
in_block_dependencies?(website)
end
def full_street_address
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment