Comments (3)
and I think in ACL::required()
method the second parameter (Model_User $user = NULL
) is not needed because always runs the following code:
if (is_null($user))
{
$user = User::active_user();
}
from cms.
Second parameter is useful in many cases, like when you want to perform a background job as a particular user, in that case we need to pass the user object, because the active user will be the guest in that case, but we need to run as different user.
Callback would be helpful in some cases,
from cms.
from cms.
Related Issues (20)
- Theme issue
- Getting client locale at bootstrap time throws exception
- Fix copyright char
- Page shutted down while 403
- Logged in as admin, /admin/menus causes 403
- Maintenance issue (Error 503)
- ErrorException [ Warning ]: array_keys() expects parameter 1 to be array, boolean given HOT 4
- The demo website is out HOT 1
- Stored XSS via blog HOT 1
- CSRF Vulnerability Discovered HOT 2
- XSS Vulnerability caused by Redactor 3 HOT 3
- Stored XSS in profile page HOT 2
- There is a XSS vulnerability that can execute javascript HOT 1
- There is a CSRF vulnerability that can add the administrator account
- There is a CSRF vulnerability that can add the administrator account HOT 2
- Insecure Direct Object Reference - View other user profiles HOT 3
- Unauthenticated user enumeration and Possible account brute force leading to account compromise
- Application is vulnerable to clickjacking attack
- There was an error in the local installation, just like the demo you provided.
- Server-side request forgery (SSRF) vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.