diff options
| author | 2014-12-06 16:39:10 +0100 | |
|---|---|---|
| committer | 2014-12-06 16:41:06 +0100 | |
| commit | 4c888590e6f0fd89fc1dccebb5e815883eeaa54c (patch) | |
| tree | 8503c83d00eedf6d7ab64813aa555121ef87b2e4 /app/views | |
| parent | 2e4682ebd451f8dd291e11141553add9164cbbef (diff) | |
Improve system/user types for extensions
- system extensions can only be managed by an administrator
- system extensions are loaded for all users (even if not logged)
- user extensions are loaded for logged users only
- system extensions loading is saved in global config.php file
See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/extension/index.phtml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/extension/index.phtml b/app/views/extension/index.phtml index c6b7c84a1..0be03d7b5 100644 --- a/app/views/extension/index.phtml +++ b/app/views/extension/index.phtml @@ -10,6 +10,7 @@ <?php foreach ($this->extension_list as $ext) { ?> <ul class="horizontal-list"> <li class="item"> + <?php if ($ext->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) { ?> <?php $name_encoded = urlencode($ext->getName()); ?> <div class="stick"> <a class="btn open-slider" href="<?php echo _url('extension', 'configure', 'e', $name_encoded); ?>"><?php echo _i('configure'); ?> <?php echo _t('admin.extensions.manage'); ?></a> @@ -22,6 +23,9 @@ <button class="btn btn-attention confirm" form="form-extension" formaction="<?php echo _url('extension', 'remove', 'e', $name_encoded); ?>"><?php echo _t('admin.extensions.remove'); ?></button> <?php } ?> </div> + <?php } else { ?> + <?php echo _t('admin.extensions.system'); ?> + <?php } ?> </li> <li class="item"><?php echo $ext->getName(); ?></li> </ul> |
