| | 98 | } |
|---|
| | 99 | /* |
|---|
| | 100 | echo "DEBUG: manifest <pre>\n"; |
|---|
| | 101 | print_r($current_manifest); |
|---|
| | 102 | echo "</pre>\n"; |
|---|
| | 103 | */ |
|---|
| | 104 | if ( isset($current_manifest->customdata['midgard.admin.acl']) |
|---|
| | 105 | && isset($current_manifest->customdata['midgard.admin.acl']['extra_privileges'])) |
|---|
| | 106 | { |
|---|
| | 107 | foreach ($current_manifest->customdata['midgard.admin.acl']['extra_privileges'] as $privilege) |
|---|
| | 108 | { |
|---|
| | 109 | if (!strpos($privilege, ':')) |
|---|
| | 110 | { |
|---|
| | 111 | // Only component specified |
|---|
| | 112 | // TODO: load components manifest and add privileges from there |
|---|
| | 113 | continue; |
|---|
| | 114 | } |
|---|
| | 115 | $this->_privileges[] = $privilege; |
|---|
| | 116 | } |
|---|