Skip to content

octree-gva/decidim-verifications-simple_impersonation

Repository files navigation

Decidim - Octree Participatory democracy on a robust and open source solution

Lausanne Participe — Une plateforme de participation pour imaginer et réaliser ensemble

Simple Impersonation Verification

A verification workflow dedicated to impersonation, sponsored by the Participer Lausanne.

Why

Have you ever enabled a Decidim direct verification just to enable impersonation? I guess you have. Using verification for impersonation has some unfortunate side effects:

  1. Users see in the "Authorization" tab an authorization that most of the time doesn't have any meaning. (Like "Direct Verification")
  2. Users can submit a direct verification dedicated to impersonation => this makes no sense.
  3. Impersonated Users see in their account that they have been authorized, but it does not give any insight about authorized to do what, and when the impersonation has been done. => this is a waste.

This module fixes that, doing very little:

  1. A "Simple Impersonation" Verification will be available in /system
  2. Users don't see anymore the "Simple Impersonation" in the Authorization tab
  3. Admins can impersonate Users giving a Reason to impersonate only. No additional fields are required.
  4. "Simple Impersonation Verifications" can be created only by registered admins.

Installation

Add this line to your application's Gemfile:

gem "decidim-verifications-simple_impersonation", git: "https://github.com/octree-gva/decidim-verifications-simple_impersonation"

Then execute:

bundle

Testing

The Rakefile is shipped with a test_app using docker-compose to run a database. If you haven't done it already, install docker](https://docs.docker.com/get-docker/).

    bundle exec rake test_app

Contributing

This repository is not yet ready for contributions.

License

This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.



Decidim Installation by Octree

About

A verification dedicated to impersonation for decidim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published