laemmi/laemmi-yourls-bind-user-to-entry

YOURLS 插件。将登录用户名绑定到 URL 条目。

v1.0.6 2020-02-17 15:14 UTC

This package is auto-updated.

Last update: 2024-09-18 01:23:53 UTC


README

YOURLS 1.7 插件

描述

将登录用户名绑定到 URL 条目。它生成用户创建和用户更新条目。德语本地化。使用此插件与 "laemmi-yourls-easy-ldap" 插件一起。您必须首先安装 "laemmi-yourls-default-tools"。

安装

  • 在 /user/plugins 中,创建一个名为 laemmi-yourls-user-to-entry 的新文件夹。
  • 将这些文件放入该目录中。
  • 通过 git 前往 /users/plugins 并输入 git clone https://github.com/Laemmi/laemmi-yourls-user-to-entry.git
  • 将配置值添加到配置文件
  • 前往 YOURLS 插件管理页面并激活插件。

可用的配置值

允许的 ldap 组名称与 yourls 动作和列表权限

define('LAEMMI_EASY_LDAP_ALLOWED_GROUPS', json_encode([
    'MY-LDAP-GROUPNAME' => ['action-edit-other', 'action-delete-other', 'action-add-project', 'action-edit-project', 'action-add-other-project', 'action-edit-other-project'
     'list-show-other', 'list-show-other-project', 'list-show-own-in-other-project', 'list-show-other-in-own-project']
]));

要设置的项目

define('LAEMMI_BIND_USER_TO_ENTRY_PROJECTLIST', json_encode([
    'Project 1' => [
        'LDAP-GROUPNAME' => 'permissions .....'
    ],
    'Project 2' => [
        'LDAP-GROUPNAME' => 'permissions .....'
    ]
]));

权限

动作
  • action-edit-other = 编辑其他 URL
  • action-delete-other = 删除其他 URL
  • action-add-project = 添加所选项目
  • action-edit-project = 编辑所选项目
  • action-add-other-project = 添加其他所选项目
  • action-edit-other-project = 编辑其他所选项目
列表
  • list-show-other = 显示其他 URL
  • list-show-other-project = 显示用户不在其中的项目中的 URL
  • list-show-own-in-other-project = 显示用户不在其中的项目分配的自己的 URL
  • list-show-other-in-own-project = 显示用户所在的项目分配的其他 URL