Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9054251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:38:32+00:00 2026-06-16T13:38:32+00:00

The app I’m working on revolves around users belonging to organisations, and only being

  • 0

The app I’m working on revolves around users belonging to organisations, and only being able to access resources in those organisations. That much is fine, and pretty straight forward.

The system also has users outside of any organisation, who are able to view anything within the system. When one of these users logs in, they get given a list of organisations that they would like to view. Selecting one should then give them a view of the system as if they were logged in as a standard user, but retain their superuser privileges.

Is there a nice way I can have the system know that a particular organisations has been selected and not have to have a nested resource for every path?

So for example, I want to login as superuser, and view organisationA. I want to be able to select the organisation, and simply to go

/subjects

rather than having to go to

/organisations/1/subjects

Is there any nice way of doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:38:34+00:00Added an answer on June 16, 2026 at 1:38 pm

    If you don’t pass the context through the url, you could store the selected organisation in the session. The problem with the session approach is, that you lose the ability to link to these pages directly since you rely on data stored in the session.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

app.get('/',function(req,res){ res.render('home'); // I want the template to be able to access the flash
My app only allows access if the current user is a specific type, this
The app that I'm working on has a URL that it accesses for data,
App I'm working on uses ARC. I wanted it to process large files, so
App Engine only allows you to use these formats for XMPP addresses: app-id@appspot.com anything@app-id.appspotchat.com
The app I am working on is supporting android 2.3 upwards. As the download
@app.route(/<requested_username>/<requested_team>, methods=['GET', 'POST']) ^How do I make this so that no matter what is
app/config/routing.yml NelmioApiDocBundle: resource: @NelmioApiDocBundle/Resources/config/routing.yml prefix: /api/doc vendor/nelmio/api-doc-bundle/Nelmio/ApiDocBundle/Resources/config/routing.yml nelmio_api_doc_index: pattern: / defaults: { _controller: NelmioApiDocBundle:ApiDoc:index
App with Facebook SDK SSO was working fine in 2.2, now upgraded Samsung Galaxy
app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] })); That's the line in my app.js

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.