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 ...@@ -89,9 +89,7 @@ module WithGit
protected protected
def in_block_dependencies?(website) def in_block_dependencies?(website)
website.blocks.find_each do |block| website.blocks_dependencies.include?(self)
return true if in? block.git_dependencies
end
end end
def dependencies_through_blocks(website) def dependencies_through_blocks(website)
......
...@@ -208,11 +208,11 @@ class University::Person < ApplicationRecord ...@@ -208,11 +208,11 @@ class University::Person < ApplicationRecord
end end
def for_website?(website) def for_website?(website)
in_block_dependencies?(website) ||
administrator.for_website?(website) || administrator.for_website?(website) ||
author.for_website?(website) || author.for_website?(website) ||
researcher.for_website?(website) || researcher.for_website?(website) ||
teacher.for_website?(website) teacher.for_website?(website) ||
in_block_dependencies?(website)
end end
def full_street_address 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