Coder Social home page Coder Social logo

Comments (4)

qotho avatar qotho commented on August 22, 2024

It looks like the problem is generally related to the "sync" related changes, seen in the following commit:

https://stash.di2e.net/projects/OWFGOSS/repos/aml-owf/commits/546845b03a246551a0fddf6cde06d78ec93c5293#grails-app/controllers/ozone/owf/grails/controllers/ConfigController.groovy

Specifically, the user's groups are updated on login in SecurityFilters. In 7.14.2, there used to be a call in ConfigController that caused the person_widget_definition records to be updated for the user, based on their updated group membership. This functionality was moved.

The problem is that the call in ConfigController was never replaced. So even though SecurityFilters updates a user's group memberships, nothing syncs the person_widget_definition records after login. Manually adding or removing a group for the user causes a sync to happen, which "fixes" the problem.

In the commit linked below, I added a call to "AccountService.sync", in SecurityFilters, to force the person_widget_definition records to be synchronized, only if a user's group memberships have changed. This seems to fix the issue.

qotho@8af7be4

from owf-framework.

stephanieerin avatar stephanieerin commented on August 22, 2024

This looks good, thanks for doing so much digging! If you want to submit a PR for your changes I'll test it out and merge it in.

from owf-framework.

qotho avatar qotho commented on August 22, 2024

I saw the instructions for contributing that you committed. I don't have privileges to create a branch in this repository. Do you want me to just do a PR from my fork?

from owf-framework.

stephanieerin avatar stephanieerin commented on August 22, 2024

Yeah, that’s fine. I’ll update the contributing guidelines too, I meant to say create a fork.

Stephanie

On Aug 25, 2015, at 2:16 PM, qotho [email protected] wrote:

I saw the instructions for contributing that you committed. I don't have privileges to create a branch in this repository. Do you want me to just do a PR from my fork?


Reply to this email directly or view it on GitHub #57 (comment).

from owf-framework.

Related Issues (20)

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.