Giter VIP home page Giter VIP logo

Comments (2)

mikldt avatar mikldt commented on August 15, 2024

screen_api is used here and in the frontend in core concerto - it is required when you want a view to be accessible using Screen authorization (a private token as specified). Without it, CanCan ability checks and current_accessor checks will return nil if no user is logged in, regardless of whether a screen is logged in. With it, these use the current screen if one is logged in, and the current user otherwise (or nil if neither). I can't think off the top of my head of any other plugins that would need to use it, it's really just for actions that provide an endpoint for screens to talk (here it's because Bandshell logs in to Concerto as a "Screen" to access it's Player properties. In Frontend::ScreensController, it's to allow authenticated browsers to access the screen frontend).

I'll leave this open for now, I'm not quite sure whether the require_dependency is doing something useful or is some old leftover.

from concerto-hardware.

mikldt avatar mikldt commented on August 15, 2024

Closing this out because it seems require_dependency is not needed if we specify ConcertoHardware::ApplicationController as the parent class. Another option might be to autoload it in the module, but this way is nice and explicit (conversely, less magical).

I tested the latest commit (88bf84e) in production and in development, including when a reload occurs in development, and it looks good. Any problems can be a new ticket.

from concerto-hardware.

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.