GithubHelp home page GithubHelp logo

isabella232 / redmine_role_replacements Goto Github PK

View Code? Open in Web Editor NEW

This project forked from restream/redmine_role_replacements

0.0 0.0 0.0 466 KB

Redmine plugin for per-project role replacements.

License: Apache License 2.0

Ruby 87.48% HTML 12.52%

redmine_role_replacements's Introduction

Redmine Role Replacement Plugin

Build Status Code Climate

This plugin enables replacement of roles in Redmine projects.

Compatibility

This plugin is compatible with Redmine 3.x.

Installation

  1. To install the plugin

    • Download the .ZIP archive, extract files and copy the plugin directory into #{REDMINE_ROOT}/plugins.

    Or

    • Change you current directory to your Redmine root directory:

        cd {REDMINE_ROOT}
      

      Copy the plugin from GitHub using the following command:

        git clone https://github.com/Restream/redmine_role_replacements.git plugins/redmine_role_replacements
      
  2. This plugin requires a migration. Run the following command to upgrade your database (make a database backup before):

     bundle exec rake redmine:plugins:migrate RAILS_ENV=production
    
  3. Restart Redmine.

Now you should be able to see the plugin in Administration > Plugins.

Usage

The plugin adds the Role replacements section to the Roles and permissions tab of the Administration menu. role replacements

You can select the Manage role replacements check box for the roles which should be allowed to replace roles in the project. By default, Manage role replacement is enabled for managers only. We recommend creating a special role for role replacement management.

To replace roles in a project, you should enable the Role replacements module in the project settings.
role replacement module

If you have the Manage role replacements permission, you will see a new Role replacements tab, where you can add, edit and delete the project role replacement rules. role replacements tab

To add a role replacement rule, click New role replacement.
add role replacement

In private projects, replacement of Anonymous and Non member roles is prohibited. role replacement

In public projects, all role replacement variants are possible. role replacement

The table below shows all possible role replacement variants and their results:

Role After
Anonymous Non Member Member
Role Before Private Project Anonymous N/A N/A N/A
Non Member N/A N/A N/A
Member N/A N/A L J V
Public Project Anonymous N/A L V L V
Non Member L V N/A L V
Member L J V L J V L J V
  • N/A — replacement is not valid and cannot be applied
  • L — the project is visible in the project list
  • J — the project is visible in the Jump to a project drop-down list
  • V — the project can be accessed according to permissions of the target role (Role After)

Maintainers

Danil Tashkinov, github.com/nodecarter

License

Copyright (c) 2016 Restream

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

redmine_role_replacements's People

Contributors

irina-l avatar nodecarter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.