@@ 70-83 (lines=14) @@ | ||
67 | return $environment->Project()->allowed(self::ALLOW_APPROVAL_BYPASS, $member); |
|
68 | } |
|
69 | ||
70 | public function init() { |
|
71 | parent::init(); |
|
72 | ||
73 | $this->project = $this->getCurrentProject(); |
|
74 | if (!$this->project) { |
|
75 | return $this->project404Response(); |
|
76 | } |
|
77 | ||
78 | // Performs canView permission check by limiting visible projects |
|
79 | $this->environment = $this->getCurrentEnvironment($this->project); |
|
80 | if (!$this->environment) { |
|
81 | return $this->environment404Response(); |
|
82 | } |
|
83 | } |
|
84 | ||
85 | /** |
|
86 | * @param \SS_HTTPRequest $request |
@@ 59-73 (lines=15) @@ | ||
56 | return \Permission::checkMember($member, 'ADMIN'); |
|
57 | } |
|
58 | ||
59 | public function init() { |
|
60 | parent::init(); |
|
61 | ||
62 | $this->project = $this->getCurrentProject(); |
|
63 | ||
64 | if (!$this->project) { |
|
65 | return $this->project404Response(); |
|
66 | } |
|
67 | ||
68 | // Performs canView permission check by limiting visible projects |
|
69 | $this->environment = $this->getCurrentEnvironment($this->project); |
|
70 | if (!$this->environment) { |
|
71 | return $this->environment404Response(); |
|
72 | } |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @param \SS_HTTPRequest $request |