Giter Club home page Giter Club logo

redmine_sudo's People

Contributors

alexandermeindl avatar claudiameindl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wokat

redmine_sudo's Issues

interaction with impersonate plugin

Redmine 5.1.0 Debian 12 Postgres 16 PurpleMine2, plugin installs correctly and works correctly but if impersonate plugin is installed https://github.com/nounderline/redmine_impersonate on exit impersonation mode error is returned

F, [2023-12-02T15:38:02.552605 #22286] FATAL -- :
NoMethodError (undefined method delete' for nil:NilClass): plugins/redmine_impersonate/app/controllers/impersonation_controller.rb:38:in destroy'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

When user is admin: false, sudoer: true, they don't receive admin emails

Noticed that we weren't receiving account activation emails reliably.

Just tracked it down to this plugin. Since the plugin converts everyone from admin to sudoers, except when in "admin mode". Those users don't get the proper admin emails, except if they happen to be admin at the time.

A list of functions that send an email to all admins:

  • mailer.rb: deliver_settings_updated
    users = User.active.where(admin: true).to_a
  • user.rb: deliver_security_notification
    users = User.active.where(admin: true).to_a
  • mailer.rb: deliver_account_activiation_request
    users = User.active.where(:admin => true)

I'm assuming a fix would be to also grab users who are sudoers in these functions, but I'm not sure how to override these functions from the plugin...

something like:

User.where('admin: true OR sudoer: true')

problems installing addons in redmine 5.0.5 from bitnami

Hi,

I hope I'm not bothering you with this problem. I'm having trouble meeting the installation requirements. I need to add the following additional version 3.0.8 to the requirements and enable sudo mode in the configuration.xml file.

When I run the command "sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production", I receive an error message that says:

"Your Redmine configuration file located at /opt/bitnami/redmine/config/configuration.yml is not a valid YAML file and could not be loaded: (): did not find expected key while parsing a block mapping at line 11 column 1"

Please note that the file is located at /bitnami/redmine/config, and there is a link to its actual location in /opt/bitnami/redmine/config/configuration.yml.

Thank you for your help.

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.