mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
auth preview page
This commit is contained in:
parent
5a86aaa57f
commit
6781349fba
@ -624,6 +624,10 @@ class AdvsController extends PublicController
|
||||
|
||||
$adv = $this->adv_repository->getListItemAdv($id);
|
||||
|
||||
if (!Auth::check() or ($adv['created_by_id'] != auth()->id() and !Auth::user()->isAdmin())) {
|
||||
abort(403);
|
||||
}
|
||||
|
||||
for ($i = 1; $i <= 10; $i++) {
|
||||
$cat = "cat" . $i;
|
||||
if ($adv->$cat != null) {
|
||||
|
||||
@ -93,16 +93,20 @@
|
||||
"symfony/dom-crawler": "3.1.*",
|
||||
"anomaly/installer-module": "~2.3.0"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"repositories": {
|
||||
"0": {
|
||||
"type": "composer",
|
||||
"url": "https://packages.pyrocms.com"
|
||||
},
|
||||
{
|
||||
"1": {
|
||||
"type": "composer",
|
||||
"url": "https://community.pyrocms.com"
|
||||
},
|
||||
"repo-name": {
|
||||
"type": "composer",
|
||||
"url": "https://repo.openclassify.com"
|
||||
}
|
||||
],
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"database"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user