Skip to content

Commit

Permalink
Work on ask module
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Mar 30, 2015
1 parent 3a2b440 commit d4ab3f4
Show file tree
Hide file tree
Showing 23 changed files with 641 additions and 525 deletions.
16 changes: 16 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
'filter' => 'number_int',
'value' => 10
),
'show_info' => array(
'category' => 'show',
'title' => _a('Show information'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
'show_tags' => array(
'category' => 'show',
'title' => _a('Tags'),
Expand All @@ -69,6 +77,14 @@
'value' => 1
),
// Question
'question_ask' => array(
'category' => 'question',
'title' => _a('Can ask'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
'question_answer' => array(
'category' => 'question',
'title' => _a('Can answer'),
Expand Down
2 changes: 1 addition & 1 deletion config/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'meta' => array(
'title' => _a('Ask'),
'description' => _a('Ask and Answer'),
'version' => '0.1.0',
'version' => '0.1.3',
'license' => 'New BSD',
'logo' => 'image/logo.png',
'readme' => 'docs/readme.txt',
Expand Down
43 changes: 6 additions & 37 deletions config/permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,54 +20,23 @@
'member',
),
),
'author' => array(
'title' => _a('Authors'),
'submit' => array(
'title' => _a('Submit'),
'access' => array(
'guest',
'member',
),
),
'favourite' => array(
'title' => _a('Favourite'),
'answer' => array(
'title' => _a('Answer'),
'access' => array(
'member',
),
),
),
// Admin section
'admin' => array(
'attach' => array(
'title' => _a('Attach'),
'access' => array(
//'admin',
),
),
'author' => array(
'title' => _a('Authors'),
'access' => array(
//'admin',
),
),
'extra' => array(
'title' => _a('Extra'),
'access' => array(
//'admin',
),
),
'spotlight' => array(
'title' => _a('Spotlight'),
'access' => array(
//'admin',
),
),
'story' => array(
'title' => _a('Story'),
'access' => array(
//'admin',
),
),
'topic' => array(
'title' => _a('Topic'),
'question' => array(
'title' => _a('List of Questions'),
'access' => array(
//'admin',
),
Expand Down
Binary file modified locale/fa/admin.mo
Binary file not shown.
Loading

0 comments on commit d4ab3f4

Please sign in to comment.