Changeset 1071
- Timestamp:
- 05/10/08 18:24:58 (7 months ago)
- Files:
-
- bb-reputation/trunk/bb-reputation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-reputation/trunk/bb-reputation.php
r1042 r1071 45 45 $bb_reputation['points_from_balance']=true; // when awarding points, should they come from their own balance? 46 46 $bb_reputation['variable_points']=true; // can members chose how many points to award or use fixed numbers above 47 48 $bb_reputation['deduct_role']='administrate'; // members can deduct points at what role level (participate/moderate/administrate) 47 49 48 50 $bb_reputation['reason_length']=80; // how long can their description for the award reason be? … … 121 123 bb_update_meta( $from_id, "bb_reputation", $deduct, 'user' ); 122 124 } 123 if ($points>0 ) {125 if ($points>0 || bb_current_user_can($bb_reputation['deduct_role'])) { 124 126 $add=intval($user->bb_reputation)+$points; 125 127 bb_update_meta( $user_id, "bb_reputation", $add, 'user' );
